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:
parent
652f03c04a
commit
73b3873e10
2
bpc.py
2
bpc.py
@ -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')
|
||||
|
2
eddn.py
2
eddn.py
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user