Commit 132f3460 authored by Romain Bignon's avatar Romain Bignon

use localtime instead of UTC

parent 6f7294ca
......@@ -36,7 +36,7 @@ class BlogListAction(ViewAction):
class SortableFile(object):
def __init__(self, f):
self.obj = f
self.mtime = f.get_mtime().replace(tzinfo=tz.tzlocal()).astimezone(tz.tzutc())
self.mtime = f.get_mtime()
def __lt__(self, o):
return self.mtime < o.mtime
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment