Skip to content

Instantly share code, notes, and snippets.

@jamesjtong
Last active August 29, 2015 13:57
Show Gist options
  • Save jamesjtong/9819670 to your computer and use it in GitHub Desktop.
Save jamesjtong/9819670 to your computer and use it in GitHub Desktop.
INPUT STRINGs time= "2014-03-19T04:00:00.000Z" timezone=("Europe/Berlin")
CLOSEST THAT I HAVE GOTTEN
Time.zone.parse(time).in_time_zone(timezone).to_s
=> "2014-03-19 05:00:00 +0100"
DESIRED
=> "2014-03-19 06:00:00 +0000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment