summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/models.py b/news/models.py
index c4fb136a..17d51de9 100644
--- a/news/models.py
+++ b/news/models.py
@@ -27,7 +27,7 @@ class News(models.Model):
def set_news_fields(sender, **kwargs):
news = kwargs['instance']
- now = datetime.now()
+ now = datetime.utcnow()
news.last_modified = now
if not news.postdate:
news.postdate = now