carolinehardin / pagewise

A homework tracker
GNU General Public License v2.0
0 stars 1 forks source link

Fix timezone to be central #89

Open carolinehardin opened 8 years ago

carolinehardin commented 8 years ago

https://docs.djangoproject.com/en/1.9/topics/i18n/timezones/

carolinehardin commented 8 years ago

http://pytz.sourceforge.net/

carolinehardin commented 8 years ago

Stuff that didn't work

from django.utils import timezone #old way

from django.utils.timezone import localtime, now

import pytz #timezone stuff

from pytz import timezone

#central = timezone('US/Central')
#utcNow = datetime.now(pytz.utc).date() #
#now = utcNow.astimezone(central)
#now = datetime.date.now()
#isAware = "This doesn't work"#now.is_aware()
carolinehardin commented 8 years ago

Stuff that did work: changing the settings file