Local time in timestamp
This commit is contained in:
committed by
Aaron Griffith
parent
454c1537a6
commit
e519aaa8a0
@@ -19,7 +19,7 @@ import stat
|
|||||||
import cPickle
|
import cPickle
|
||||||
import Image
|
import Image
|
||||||
import shutil
|
import shutil
|
||||||
from time import strftime, gmtime
|
from time import strftime, localtime
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import util
|
import util
|
||||||
@@ -132,7 +132,7 @@ class MapGen(object):
|
|||||||
|
|
||||||
index = open(indexpath, 'r').read()
|
index = open(indexpath, 'r').read()
|
||||||
index = index.replace(
|
index = index.replace(
|
||||||
"{time}", str(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())))
|
"{time}", str(strftime("%a, %d %b %Y %H:%M:%S %Z", localtime())))
|
||||||
index = index.replace("{version}", util.findGitVersion())
|
index = index.replace("{version}", util.findGitVersion())
|
||||||
|
|
||||||
with open(os.path.join(self.destdir, "index.html"), 'w') as output:
|
with open(os.path.join(self.destdir, "index.html"), 'w') as output:
|
||||||
|
|||||||
Reference in New Issue
Block a user