Ok, i compiled the code below and ran it,
it prints out:
timezone: 134513644
but in BASH shell if i type DATE, then this is the output:
Mon Oct 18 09:44:00 NZDT 2004
so it does know about NZ time...
Anyone got ideas?
Thanks all.
G.
> > Date: Mon, 11 Oct 2004 12:26:28 -3736512
>
> The timezone offset (-3736512) is obtained from the "timezone" variable, which
> is initialized with the tzset() function inside elogd. See "man tzset" for
> details. It looks like if the timezone on your FreeBSD box is not correctly
> defined.
>
> Try to compile and execute following C program:
>
> #include <stdio.h>
> #include <time.h>
>
> main()
> {
> tzset();
> printf("timezone: %d\n", timezone);
> }
>
> This should print something like "timezone: -3600". If not, you might consider
> defining the "TZ" environment variable. Maybe some FreeBSD expert knows some
> details about this. |