Rails Time extensions are _not_ time difference safe...

5 views
Skip to first unread message

Nauhaie None

unread,
Sep 30, 2006, 4:36:19 AM9/30/06
to rubyonra...@googlegroups.com
=> 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

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

Roderick van Domburg

unread,
Sep 30, 2006, 5:24:48 AM9/30/06
to rubyonra...@googlegroups.com
I believe Mephisto uses the TZInfo gem to fix just that.

Nauhaie None

unread,
Sep 30, 2006, 6:11:34 AM9/30/06
to rubyonra...@googlegroups.com
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...

Rob Biedenharn

unread,
Oct 1, 2006, 10:07:20 AM10/1/06
to rubyonra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages