[Git][NTPsec/ntpsec][master] report generated time said UTC, but was in local time.

Gary E. Miller gitlab at mg.gitlab.com
Tue Aug 30 01:38:09 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
5facd33c by Gary E. Miller at 2016-08-29T18:37:14-07:00
report generated time said UTC, but was in local time.

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -637,11 +637,13 @@ and response and offset all went in the same direction).<p>
 <div>
 <h1 style="margin-bottom:10px;">NTP Stats</h1>
 '''
-    index_header += 'Report generated: %s UTC <br>' \
-                     %  posix_to_iso(stats.starttime)
+
+    start_time = datetime.datetime.utcnow()
+    index_header += 'Report generated: %s UTC <br>' % start_time.strftime("%c")
+
     # Ugh.  Not clear what to do in the multiplot case
     if len(statlist) == 1:
-        index_header += 'Period: %s days <br></div> ' \
+        index_header += 'Report Period: %s days <br></div> ' \
                  % int(stats.period // NTPStats.SecondsInWeek)
     index_header += '<div style="clear:both;"></div>'
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5facd33cc7752a58bdc1912943e578a4acf4d00c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160830/7ba9ac9f/attachment.html>


More information about the vc mailing list