build.py: use time, not datetime

This commit is contained in:
rolux 2012-06-18 12:19:05 +02:00
parent 1089080b0a
commit 46fb1d9a28

View file

@ -2,7 +2,6 @@
#vim: et:ts=4:sw=4:sts=4
import base64
import datetime
import json
import os
import ox
@ -195,7 +194,7 @@ def build_oxjs(downloads=False, geo=False):
# downloads
if downloads:
data = {
'date': datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),
'date': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()),
'size': {'minified': os.path.getsize(build_path + 'Ox.js')},
'version': version
}