X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e5e8226c4d4bd610de5983e69b1b13684a17fe75..99f6dd4f1ff0390de9a9bbd4e3352b953cb9a235:/apps/lesmianator/models.py?ds=inline diff --git a/apps/lesmianator/models.py b/apps/lesmianator/models.py index 7fceda2fe..b462dcaa1 100644 --- a/apps/lesmianator/models.py +++ b/apps/lesmianator/models.py @@ -10,6 +10,7 @@ from StringIO import StringIO from django.core.files.base import ContentFile from django.db import models from django.db.models import permalink +from django.utils.timezone import utc from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse from django.db.models.signals import m2m_changed @@ -40,7 +41,7 @@ class Poem(models.Model): def visit(self): self.view_count += 1 - self.seen_at = datetime.now() + self.seen_at = datetime.utcnow().replace(tzinfo=utc) self.save() def __unicode__(self):