tcpdump mailing list archives

Re: Should the tcpdump tests be run with TZ=GMT0, or should the AFS printer print time stamps in UTC?


From: Francois-Xavier Le Bail <devel.fx.lebail () orange fr>
Date: Sun, 12 Aug 2018 16:06:02 +0200

On 05/08/2018 14:46, Denis Ovsienko wrote:

That said, if the output uses UTC, it could be helpful to use an unambiguous format as well, as in commit 99412d6.

In this commit, there is:
strftime(time_buf, sizeof (time_buf), "%Y-%m-%dT%H:%M:%S", tm);

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".

Should we add the "Z" suffix (for UTC) ?
strftime(time_buf, sizeof (time_buf), "%Y-%m-%dT%H:%M:%SZ", tm);
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: