Skip to content

Instantly share code, notes, and snippets.

@zenxds zenxds/timezone.py
Created Jul 29, 2015

Embed
What would you like to do?
# django中 timezone.now()使用的还是utc的时间,而非TIME_ZONE设置的时区的时间
timezone.localtime(timezone.now())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.