[Rails] Re: weird startup OS X time zone issue

2013-01-13 Thread Crispin Schäffler
config.time_zone = Time.zone || "UTC" is what you are looking for. The Time.zone command looks into the local time zone set for the user visiting your current page and returns it, if not found it will return the UTC Time zone. In your case looking up the timezone of the server it is running on

Re: [Rails] Re: weird startup OS X time zone issue

2013-01-11 Thread Scott Ribe
On Jan 11, 2013, at 8:33 AM, Robert Walker wrote: > You don't happen to have "Set timezone automatically using current > location" checked in your "Date & Time" system preference? No, I have it set to a fixed location. I tried changing the location, and I tried a different NTP server as well. N

[Rails] Re: weird startup OS X time zone issue

2013-01-11 Thread Robert Walker
Scott Ribe wrote in post #1091858: > I deployed an app to an OS X (10.6.8) server, and launch time for the > app was shockingly slow, but performance after launch was fine. > > The problem turns out to be this line in application.rb: > > config.time_zone = /Time Zone: (.*)$/.match(`systemsetup > -g