Hi,
I need some guidance on the time zone settings in a PCAP-NG file.
I have a pcapng file captured in the UK on 12th October 2016. That means that the time zone at the time of capture was GMT +1. There is a trace entry in this trace that shows in Wireshark
today as 15:40:31.541142. A screenshot taken at the time of the trace entry shows a clock time of 15:40.
If I look inside the pcapng file with a hex editor, there is no if_tzone option set in the IDB. The EPB for the trace entry I’ve referred to above has:
·
Timezone High – 0xAB3E0500
·
Timezone Low – 0xC0B1FE22
If there is no time reference setting in the trace file, how does Wireshark know that the file was recorded in GMT +1 timezone.
This isn’t just idle curiosity. I’ve written a trace format converter that converts IIS Logs into pcapng files. IIS logs are recorded with GMT times by default. The converter works OK but the timestamps in the packet list of the resulting
converted file shows as though I am looking at GMT (see image below). So I have an IIS log entry that matches the network trace entry above but shows as 14:40:31.
I’ve tried coding for the if_tzone IDB option and setting it to zero (GMT) but it makes no difference.
How do I get Wireshark to convert the time of a GMT trace entry to local time?
Thanks and regards…Paul