Nauhaie None
2006-Sep-30 08:36 UTC
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Roderick van Domburg
2006-Sep-30 09:24 UTC
Re: Rails Time extensions are _not_ time difference safe...
I believe Mephisto uses the TZInfo gem to fix just that. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Nauhaie None
2006-Sep-30 10:11 UTC
Re: Rails Time extensions are _not_ time difference safe...
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/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Rob Biedenharn
2006-Oct-01 14:07 UTC
Re: Rails Time extensions are _not_ time difference safe...
On Sep 30, 2006, at 6:11 AM, Nauhaie None 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 Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org +1 513-295-4739 Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org +1 513-295-4739 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---