Skip to content

Instantly share code, notes, and snippets.

@DBA
Created December 23, 2010 12:55
Show Gist options
  • Save DBA/752934 to your computer and use it in GitHub Desktop.
Save DBA/752934 to your computer and use it in GitHub Desktop.
# encoding: utf-8
require 'active_support/all'
Time.zone = Time.zone_default = "UTC"
t = "2008-04-01".to_time
p t.zone, t.to_time.zone #=> "UTC" and "WEST". Question is, why not "UTC" and "UTC"?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment