From 46fb1d9a285d680161e325d4a88f2a0c4b971e37 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 18 Jun 2012 12:19:05 +0200 Subject: [PATCH] build.py: use time, not datetime --- tools/build/build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/build/build.py b/tools/build/build.py index dd025173..79965272 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -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 }