Rails Time extensions are _not_ time difference safe

=> Sun Oct 29 09:32:08 +0100 2006

t.beginning_of_day
=> Sun Oct 29 01:00:00 +0200 2006

Is 1 am really beginning of day?

Nothing more to say. In Europe, pretty much every country adds an hour
or remove it twice a year. It just breaks beginning_of_day and a lot of
week-computations…

Huh? No one cares?

Nauhaie

I believe Mephisto uses the TZInfo gem to fix just that.

Ok… TZInfo does not seem to patch beginning_of_day and other Rails
Time calculations…

And that doesn’t change the fact that there is a bug in rails…

On Sep 30, 2006, at 6:11 AM, Nauhaie N. wrote:

Ok… TZInfo does not seem to patch beginning_of_day and other Rails
Time calculations…

And that doesn’t change the fact that there is a bug in rails…

– Posted via http://www.ruby-forum.com/.

Well, you’re free to try the patch I submitted a while back.

http://dev.rubyonrails.org/ticket/5617

-Rob

Rob B. http://agileconsultingllc.com
[email protected]
+1 513-295-4739

Rob B. http://agileconsultingllc.com
[email protected]
+1 513-295-4739