changeset 19:4d97dfb07169

Use the right date for graph names
author Daniel O'Connor <darius@dons.net.au>
date Fri, 23 Feb 2018 16:20:04 +1030
parents 9e538d88816f
children d4356465dce1
files graph.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graph.py	Fri Feb 23 16:19:11 2018 +1030
+++ b/graph.py	Fri Feb 23 16:20:04 2018 +1030
@@ -256,7 +256,7 @@
         matplotlib.pyplot.show()
     else:
         canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) # Sets canvas in fig too
-        fig.savefig(end.strftime(fname))
+        fig.savefig(start.astimezone(lt).strftime(fname))
 
 if __name__ == '__main__':
     main()