Created
April 15, 2015 22:41
-
-
Save granolocks/e43f1cddc142ca85dec2 to your computer and use it in GitHub Desktop.
bad tz conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| to_pst = Proc.new do |unix| | |
| t = Time.at(unix).utc | |
| t -= (7*60*60) # shift back 7 hours to fake PST | |
| "#{t.strftime("%Y-%m-%d %H:%M:%S")} PST" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment