[Rt-devel] RT 3.6.4rc2

Vivek Khera vivek at khera.org
Sat Jun 16 12:43:05 EDT 2007


On Jun 15, 2007, at 9:38 AM, Nicholas Clark wrote:

> On a FreeBSD machine that's in GMT I see:
>
> $ TZ=US/Mountain perl -we' print localtime()."\n"; $ENV{TZ} = "US/ 
> Eastern"; print localtime()."\n";'
> Fri Jun 15 13:31:51 2007
> Fri Jun 15 13:31:51 2007
> $ TZ=US/Eastern perl -we' print localtime()."\n"; $ENV{TZ} = "US/ 
> Mountain"; print localtime()."\n";'
> Fri Jun 15 13:31:54 2007
> Fri Jun 15 13:31:54 2007
>
>
> so TZ is getting ignored.
>

It is ignored because there is not US/Eastern timezone file on  
FreeBSD.  Peek in /usr/share/zoneinfo.

On the Mac, there is a US/Eastern file within /usr/share/zoneinfo.   
I'm sure ubuntu has it as well.

This is why you have differences.  The systems don't know the names  
of the zones you're giving them.



More information about the Rt-devel mailing list