1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Correct timestamp formats.

This commit is contained in:
Jonathan Harris 2015-06-03 17:10:08 +01:00
parent 652f03c04a
commit 73b3873e10
2 changed files with 2 additions and 2 deletions

2
bpc.py
View File

@ -14,7 +14,7 @@ def export(data):
filename = join(config.read('outdir'), '%s.%s.%s.bpc' % (data['lastSystem']['name'].strip(), data['lastStarport']['name'].strip(), time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime))))
timestamp = time.strftime('%Y-%m-%dT%H.%M.%S', time.gmtime(querytime))
timestamp = time.strftime('%Y-%m-%dT%H:%M:%S', time.gmtime(querytime))
rowheader = '%s;%s;%s' % (data['commander']['name'].replace(';',':').strip(), data['lastSystem']['name'].strip(), data['lastStarport']['name'].strip())
h = codecs.open(filename, 'w', 'utf-8')

View File

@ -24,7 +24,7 @@ def export(data, callback):
'uploaderID': data['commander']['name'].strip() }
systemName = data['lastSystem']['name'].strip()
stationName = data['lastStarport']['name'].strip()
timestamp = time.strftime('%Y-%m-%dT%H.%M.%S', time.gmtime(querytime))
timestamp = time.strftime('%Y-%m-%dT%H:%M:%S', time.gmtime(querytime))
# route all requests through a session in the hope of using keep-alive
session = requests.Session()