build.py: use time, not datetime
This commit is contained in:
parent
1089080b0a
commit
46fb1d9a28
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue