]> The Tcpdump Group git mirrors - tcpdump/commit
NTP: Fix UTC/GMT timestamps printing according to RFC3339
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 14 Aug 2018 12:12:56 +0000 (14:12 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 14 Aug 2018 12:12:56 +0000 (14:12 +0200)
commitdc8ce203b3ba6b1f0a3bf9a443b17bb3b2b02731
tree945a7e45ed0b67785e67854eebd776666524955e
parent7399fb8c8ba277e69b3085dcbab4aedc04ffae8f
NTP: Fix UTC/GMT timestamps printing according to RFC3339

Add the "Z" suffix for UTC.

According to the RFC3339:
      Z           A suffix which, when applied to a time, denotes a UTC
                  offset of 00:00; often spoken "Zulu" from the ICAO
                  phonetic alphabet representation of the letter "Z".

Update the output of some tests accordingly.
print-ntp.c
tests/ntp-time--v.out
tests/ntp-time--vv.out
tests/ntp-time--vvv.out
tests/ntp-v.out