Mercurial > ~darius > hgwebdir.cgi > vanlogger
diff graph.py @ 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 | 57dece5674e3 |
children | d4356465dce1 |
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()