Skip to content

Instantly share code, notes, and snippets.

@mgreenly
Created January 5, 2012 03:13
Show Gist options
  • Save mgreenly/1563536 to your computer and use it in GitHub Desktop.
Save mgreenly/1563536 to your computer and use it in GitHub Desktop.
Date Time Parse Is In UTC Time
Time.zone
# (GMT-06:00) Central Time (US & Canada)
DateTime.parse("2011/01/01T00:00").utc?
# true
DateTime.parse("2011/01/01T00:00").to_time.getlocal
# 2010-12-31 18:00:00 -0600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment