On Wed, Mar 30, 2011 at 01:23:55AM +0200, Robert Pankowecki wrote:
> I also found a bug that occurs on 3.0.5
> 
> ruby-1.9.2-p136 :004 > Time.now
>  => 2011-03-30 01:15:20 +0200
> ruby-1.9.2-p136 :005 > Date.today
>  => Wed, 30 Mar 2011
> ruby-1.9.2-p136 :006 > Date.yesterday
>  => Mon, 28 Mar 2011
> ruby-1.9.2-p136 :007 > Time.zone
>  => (GMT+00:00) UTC
> ruby-1.9.2-p136 :008 > Date.tomorrow
>  => Wed, 30 Mar 2011
> 
> As you can see the simple expectation that yesterday = today -1 and
> tomorrow = today + 1 is apparently not true in some cases. This
> problem probably happens around midnight in some zones...
> 
> Do you want me to create tickets for them ?

Yes please.  Does this happen on 3.0.4 too?

-- 
Aaron Patterson
http://tenderlovemaking.com/

Attachment: pgpYdQ7vmzPuQ.pgp
Description: PGP signature

Reply via email to