Skip to content

Instantly share code, notes, and snippets.

@zhasm
Created December 19, 2010 01:50
Show Gist options
  • Save zhasm/747033 to your computer and use it in GitHub Desktop.
Save zhasm/747033 to your computer and use it in GitHub Desktop.
set timezone to china gmt+8
import time
import os
os.environ['TZ']='Asia/Shanghai'
time.tzset()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment