Date beginning_of_week confusion

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 should use Date.current. As far as I can remember, we don’t patch Date.today.

Cheers,

– Yves