[Git][NTPsec/ntpsec][master] Revert "Prevent ntp.util.rfc3339() from truncating fractional parts."

Eric S. Raymond gitlab at mg.gitlab.com
Thu Feb 2 14:27:14 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
dfdad18a by Eric S. Raymond at 2017-02-02T09:25:37-05:00
Revert "Prevent ntp.util.rfc3339() from truncating fractional parts."

This addrsses GitLab issue #225: Python test failure.  The bug I was
originally targeting here needs further analysis.

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -40,7 +40,7 @@ def stdversion():
 def rfc3339(t):
     "RFC 3339 string from Unix time, including fractional second."
     rep = time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime(t))
-    t = "%f" % t
+    t = str(t)
     if "." in t:
         subsec = t.split(".", 1)[1]
         if int(subsec) > 0:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/dfdad18a442f110c7645517166b9c3758507d709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170202/dad748c3/attachment.html>


More information about the vc mailing list