You should use Date.current. As far as I can remember, we don't patch Date.today.
Cheers, -- Yves — Sent from Mailbox On Thu, Jul 10, 2014 at 11:51 AM, Michalis P <[email protected]> wrote: > Hello all, > I just wanted to ask if this is normal/intended or just a bug. > [5] pry(main)> Date.beginning_of_week > => :monday > [6] pry(main)> Date.today.beginning_of_week > => Sun, 06 Jul 2014 > Kind regards, > Michalis > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
