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

Already on GitHub? Sign in to your account

Get the right time zone from Rails' TimeWithZone. #19

Merged
merged 1 commit into from Feb 10, 2012

Conversation

Projects
None yet
2 participants
Contributor

henrik commented Feb 9, 2012

Without this fix, Ruby on Rails TimeWithZone#to_builder will incorrectly assume that a local time is UTC.

Sorry I missed this in the last pull request. Was a bit tricky to chase down. Seems like TimeWithZone passes stuff onto Time and loses time zone awareness on the way.

Get the right time zone from Rails' TimeWithZone.
Without this fix, Ruby on Rails TimeWithZone#to_builder will incorrectly
assume that a local time is UTC.
Contributor

henrik commented Feb 9, 2012

Possibly tzinfo could be a development dependency only.

dewski pushed a commit that referenced this pull request Feb 10, 2012

Merge pull request #19 from barsoom/timezones-rails
Get the right time zone from Rails' TimeWithZone.

@dewski dewski merged commit 0e1f1bb into dewski:master Feb 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment