[Git][NTPsec/ntpsec][master] Fix #811: ntpdig keep wall seconds leading 0s
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Sun Nov 26 21:16:28 UTC 2023
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
8fff579b by James Browning at 2023-11-26T05:32:34-08:00
Fix #811: ntpdig keep wall seconds leading 0s
- - - - -
1 changed file:
- ntpclients/ntpdig.py
Changes:
=====================================
ntpclients/ntpdig.py
=====================================
@@ -217,7 +217,7 @@ def report(packet, json):
digits = min(6, -int(math.log10(2**packet.precision)))
date = time.strftime("%Y-%m-%d", t)
- tod = time.strftime("%T", t) + (".%-*d" % (digits, ms)).rstrip()
+ tod = time.strftime("%T", t) + (".%0*d" % (digits, ms)).rstrip()
sgn = ("%+d" % tmoffset)[0]
tz = "%s%02d%02d" % (sgn, abs(tmoffset) // 60, tmoffset % 60)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/8fff579b6331a93364918add046824687bb87bd9
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/8fff579b6331a93364918add046824687bb87bd9
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20231126/ebcf164e/attachment.htm>
More information about the vc
mailing list