Ethereal-dev: Re: [Ethereal-dev] Possible timezone issue

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: naveenk <naveenk@xxxxxxxxxxxxx>
Date: Wed, 28 Jan 2004 20:47:29 +0530
Hi guy
I have few more doubt
When packet is captured what time stamp it gets ie does the bpf mechanism
take in to account the time zone of the machine capturing is taking place on.

    there may be two scenerios
     1. all times are changed to GMT 0.0 so that if the capured data is viewd
on any other machine appropriate time zone offset can be added while
displaying the packets
      2. local time is stamped but in such a case time zone info should be
part of capture file only then times can be appropriately displayed on
different machine.
Also I observe the local time calculation is done in
strptime.c
where local time is calculated using usual C routine with OS support
If i am correct ,here local time is found and is now used  as a offset to
display packet time in gui
best regards
Naveen
Guy Harris wrote:

> On Wed, Jan 28, 2004 at 08:14:50PM +0530, naveenk wrote:
> > How can I show the packet time   independent of time zone ie at GMT +0.0
>
> View it on UNIX and run Ethereal with the "TZ" environment variable set
> to "GMT", so that the OS's time zone code thinks you're in a GMT-based
> time zone.
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx