Pregunta


Loading development environment (Rails 3.0.17)
1.9.3p194 :001 > Time.zone
 => (GMT-05:00) Eastern Time (US & Canada) 
1.9.3p194 :002 > Time.now.in_time_zone
 => Tue, 18 Sep 2012 14:16:00 EDT -04:00 
1.9.3p194 :003 > wtf....

Unless all of my apps are doing this (only have one to test right now) how can EDT be -04:00 from UTC instead of the normal -05:00

Whatever is causing this -04:00 is causing my deadline based app to have all the countdown timers NOT appear for anyone other than EST users. Like if you selected CST in my app, saved, and then viewed the same page again, you'd have one hour less on the countdown... so if the gig was going off in an hour and you did it, well you wouldn't be able to join.

Not good.

Thoughts?

¿Fue útil?

Solución

EDT (Eastern Daylight Time) is GMT -4:00

If you look at the result, you're seeing EDT rather than EST (which is GMT -5:00).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top