Skip to content

Instantly share code, notes, and snippets.

@goncalossilva
Created February 25, 2011 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goncalossilva/844382 to your computer and use it in GitHub Desktop.
Save goncalossilva/844382 to your computer and use it in GitHub Desktop.
# wtf
Psych::ScalarScanner.new.tokenize("2011-02-24 11:17:06 -0800")
=> 2011-03-29 20:17:06 +0100
# this date format is important because of git
(19:43) goncalossilva ~/Desktop/rails[master] $ git show -s --pretty=format:"%ci" 13547c16d97b5f52db11d9f48704bbea20b54a4c
2011-02-24 11:17:06 -0800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment