dewski / json_builder

Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.
http://garrettbjerkhoel.com/json_builder/
MIT License
243 stars 52 forks source link

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

Closed henrik closed 12 years ago

henrik commented 12 years ago

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.

henrik commented 12 years ago

Possibly tzinfo could be a development dependency only.