Permalink
Browse files

fix mysql datetime fuck up

  • Loading branch information...
digi604 committed Apr 11, 2013
1 parent 63603e9 commit e8d9207e0065cc68a602a9090bdbdcd32f3fd91c
Showing with 1 addition and 0 deletions.
  1. +1 −0 cms/tests/page.py
View
@@ -413,6 +413,7 @@ def test_sitemap_includes_last_modification_date(self):
def test_sitemap_uses_publication_date_when_later_than_modification(self):
now = timezone.now()
+ now -= datetime.timedelta(microseconds=now.microsecond)
one_day_ago = now - datetime.timedelta(days=1)
page = create_page("page", "nav_playground.html", "en", published=True, publication_date=now)
page.creation_date = one_day_ago

0 comments on commit e8d9207

Please sign in to comment.