summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-07 22:39:53 +0200
committerDan McGee <dan@archlinux.org>2011-04-08 00:03:00 +0200
commit01db07bad844e17e084f650b6732647f77a91c5c (patch)
tree3260bae1697f2aaac5140f20ea9d0e30953a5be7 /news
parent7d08d59280dc4ddbe43f277e177bce683dd51188 (diff)
downloadarchweb-01db07bad844e17e084f650b6732647f77a91c5c.tar.gz
archweb-01db07bad844e17e084f650b6732647f77a91c5c.tar.xz
Use UTC datetime objects everywhere
Rather than the twisted mix of local times and UTC times we currently have. Signed-off-by: Dan McGee <dan@archlinux.org>
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 c4fb136..17d51de 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