chrisvans / onbaristawebapp

Web App for Baristas to check in when they are on bar
0 stars 1 forks source link

Timezone issues #37

Closed chrisvans closed 11 years ago

chrisvans commented 11 years ago

The timezone.now() call does not return the correct local time for what TIMEZONE is set to in settings.py. It's returning East Coast time + 5:00 rather than America/Chicago time.

chrisvans commented 11 years ago

Django requires timezones to be saved at UTC. Regardless of how you format it or change the TZ object, it will save as UTC. Changing the timezone at the time of display ( unicode, method, etc) works however.