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: Denis Ovsienko <denis () ovsienko info>
Date: Sun, 12 Aug 2018 21:57:13 +0100

 ---- On Sun, 12 Aug 2018 20:35:36 +0100 Guy Harris <gharris () sonic net> wrote ---- 
On Aug 12, 2018, at 7:06 AM, Francois-Xavier Le Bail <devel.fx.lebail () orange fr> wrote: 
 
Should we add the "Z" suffix (for UTC) ? 
strftime(time_buf, sizeof (time_buf), "%Y-%m-%dT%H:%M:%SZ", tm); 

That's a good point, I used to think the "T" is both mandatory and indicates the zero offset, but having looked up the 
spec those are actually properties of the (missing) "Z", whereas "T" (in the RFC version) may be replaced with a space.

Should we do so in ts_date_hmsfrac_print() as well, if time_flag isn't LOCAL_TIME?

Looks like so.

-- 
    Denis Ovsienko


_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: