]> The Tcpdump Group git mirrors - tcpdump/commit
Fix local time printing
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 7 Aug 2018 15:11:43 +0000 (17:11 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 7 Aug 2018 15:37:36 +0000 (17:37 +0200)
commitd77ac851c76ff95e6542e93715786d29ba86c51f
tree123f4d24ab7b4f39deb3722127c46bb96332d3b9
parent7df3ddfdcd28191ce412613fecf2a41284476654
Fix local time printing

Using seconds offset from GMT to local time to compute local time give
errors when printing times outside the same daylight saving time period.

Use the localtime() function for default and -tttt cases.
Use the gmtime() function for -ttt and -ttttt cases.

Rename ts_hmsfrac_print() to ts_date_hmsfrac_print().
Remove some variables now useless.
Update some comments.
netdissect.h
print.c
print.h
tcpdump.c
util-print.c