Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
Entry   , posted by on Mon Oct 11 22:57:58 2004 
    Reply   , posted by on Wed Oct 13 20:48:52 2004 
       icon2.gif   Re: ELOG e-mail notifications - their arrival time is wrong, posted by G on Sun Oct 17 22:47:39 2004 
Message ID: 741     Entry time: Sun Oct 17 22:47:39 2004     In reply to: 729
Icon: Reply  Author: Author Email: levineg@med.govt.nz 
Category: Question  OS: Other  ELOG Version: 2.5.3 
Subject: Re: ELOG e-mail notifications - their arrival time is wrong 
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.
ELOG V3.1.5-fe60aaf