Skip to content

Instantly share code, notes, and snippets.

@onionhammer
Created November 17, 2013 20:19
Show Gist options
  • Save onionhammer/7517774 to your computer and use it in GitHub Desktop.
Save onionhammer/7517774 to your computer and use it in GitHub Desktop.
Times issue
import times
var time = getTime()
var local = time.getLocalTime() - TTimeInterval(hours: 2)
echo local.format("h:mm:ss tt")
assert local != getTime().getLocalTime()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment