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: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 28 Jan 2004 01:36:31 -0800
On Wed, Jan 28, 2004 at 07:43:32PM +0530, naveenk wrote:
> How exactly timezone info is calculated. and used to calculate time
> (specific to -t a option)

The time stamps are handed to "localtime()".

> If the ethereal routines are not able to find out time zone.

The Ethereal routines don't even *try* to find out the time zone; they
leave that up to "localtime()" and "mktime()", which are part of the OS
on UNIXes and part of, I think, the C library on Windows, but they
probably ultimately uses information it gets from the OS. 

I.e., the handling of time zones is done entirely in the OS and C
library.  Ethereal doesn't itself do anything about time zones.