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

[Bug fix] Timezones travel/freeze losing zone awareness on to_date or Date.today #73

Merged
merged 1 commit into from
Mar 8, 2013

Conversation

tommeier
Copy link
Contributor

@tommeier tommeier commented Mar 8, 2013

Hi,

For edge cases with odd timezones, I noticed a bug where certain (+12hr) zones would create an incorrect to_date or Date.today.

I've used Marshall Is. as an example as they are +12 and generally made my tests fail.

The bug was caused by TimeStackItem on call of def date would not pass the current Time object, which may be Time.zone applicable. Thus on to_date the tz applicable values are stripped, rather than converted.

Best regards,

Tom

travisjeffery pushed a commit that referenced this pull request Mar 8, 2013
[Bug fix] Timezones travel/freeze losing zone awareness on to_date or Date.today
@travisjeffery travisjeffery merged commit 8c4df10 into travisjeffery:master Mar 8, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants