Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong hour after jump #14

Closed
software-project opened this issue Feb 29, 2012 · 3 comments
Closed

Wrong hour after jump #14

software-project opened this issue Feb 29, 2012 · 3 comments

Comments

@software-project
Copy link

Time.now.utc => 2012-02-29 18:33:42 UTC
Delorean.jump 30.days => nil
Time.now.utc => 2012-03-30 17:33:45 UTC

Some how we are loosing one hour.

@jorgesancha
Copy link
Contributor

Isn't this is due to Daylight Saving Time? Kicks in on March 25th this year

>> Time.zone = "Madrid"
=> "Madrid"
>> Time.zone.now
=> Thu, 01 Mar 2012 09:51:27 CET +01:00
>> Delorean.jump 23.days
=> nil
>> Time.zone.now
=> Sat, 24 Mar 2012 09:51:37 CET +01:00
>> Delorean.jump 1.day
=> nil
>> Time.zone.now
=> Sun, 25 Mar 2012 09:51:53 CEST +02:00

@software-project
Copy link
Author

I think it is, but in my case its unwanted behaviour. No maybe there should be some kind of mode that ignores dst.

@cavalle
Copy link
Contributor

cavalle commented Jul 4, 2012

Current behaviour is correct since it takes into account the TZ. Closing.

@cavalle cavalle closed this as completed Jul 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants