From eb940f52dcb5dcb677acec360edfdc0aed086cb8 Mon Sep 17 00:00:00 2001
From: Jonathan Harris <jonathan@marginal.org.uk>
Date: Thu, 4 Jun 2015 18:48:52 +0100
Subject: [PATCH] Add UTC timezone to timestamps in BPC and CSV output.

---
 bpc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bpc.py b/bpc.py
index 884bc459..a7d8850c 100644
--- a/bpc.py
+++ b/bpc.py
@@ -14,7 +14,7 @@ def export(data, csv=False):
 
     filename = join(config.get('outdir'), '%s.%s.%s.%s' % (data['lastSystem']['name'].strip(), data['lastStarport']['name'].strip(), time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime)), csv and 'csv' or 'bpc'))
 
-    timestamp = time.strftime('%Y-%m-%dT%H:%M:%S', time.gmtime(querytime))
+    timestamp = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(querytime))
     if csv:
         header = 'System;Station;Commodity;Sell;Buy;Demand;;Supply;;Date;\n'
         rowheader = '%s;%s' % (data['lastSystem']['name'].strip(), data['lastStarport']['name'].strip())