Skip to content

Instantly share code, notes, and snippets.

@davidpdrsn
Created February 17, 2017 15:08
Show Gist options
  • Select an option

  • Save davidpdrsn/8a6a17c8c7e23dcdc76501b35ab641ab to your computer and use it in GitHub Desktop.

Select an option

Save davidpdrsn/8a6a17c8c7e23dcdc76501b35ab641ab to your computer and use it in GitHub Desktop.
ActiveSupport::TimeZone["Pacific Time (US & Canada)"].parse("February 17th at 8am").in_time_zone("CET")
# => Fri, 17 Feb 2017 17:00:00 CET +01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment