lkml.org 
[lkml]   [1999]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Time??
Date
From
| echo "<$TZ>" yielded <>, and the latter still didn't fix it =( this is
| also on a redhat box as well as the Debian one.. something is broken some
| where.

I think the problem is the timezone file itself (tested on RH 5.2):

> setenv TZ US/Eastern
> ./foo
tzname 0: EST
tzname 1: EDT
> setenv TZ US/Central
> ./foo
tzname 0: EST
tzname 1: CDT
> setenv TZ US/Pacific
> ./foo
tzname 0: PST
tzname 1: PDT


foo.c:
----------------------------
#include <time.h>

main(){
tzset();
printf("tzname 0: %s\n",tzname[0]);
printf("tzname 1: %s\n",tzname[1]);
}
----------------------------


... looks like someone was copying files around and forgot to update a byte.

--
Randomly Generated Tagline:
"But the pusher don't care / If u live or u die"




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.268 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site