Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in Account.now

  • Loading branch information...
commit 6ce7b2c89b2f01ffcaf9603cebedb7a4b642a8cd 1 parent c0fffaa
@brosner brosner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  account/models.py
View
2  account/models.py
@@ -73,7 +73,7 @@ def now(self):
"""
now = datetime.datetime.utcnow().replace(tzinfo=pytz.timezone("UTC"))
timezone = settings.TIME_ZONE if not self.timezone else self.timezone
- return aware.astimezone(pytz.timezone(timezone))
+ return now.astimezone(pytz.timezone(timezone))
def localtime(self, value):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.