Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   display GMT time instead of local time in Entry time/ Last edit field, posted by Dan Duong on Tue Jul 28 02:50:42 2009 
    icon2.gif   Re: display GMT time instead of local time in Entry time/ Last edit field, posted by Stefan Ritt on Tue Jul 28 11:04:01 2009 
       icon2.gif   Re: display GMT time instead of local time in Entry time/ Last edit field, posted by Dan Duong on Wed Jul 29 04:56:27 2009 
          icon2.gif   Re: display GMT time instead of local time in Entry time/ Last edit field, posted by Stefan Ritt on Wed Jul 29 09:21:39 2009 
             icon2.gif   Re: display GMT time instead of local time in Entry time/ Last edit field, posted by Dan Duong on Mon Aug 3 03:26:23 2009 
Message ID: 66476     Entry time: Wed Jul 29 04:56:27 2009     In reply to: 66469     Reply to this: 66477
Icon: Reply  Author: Dan Duong  Author Email: Dan.Duong@team.telstra.com 
Category: Question  OS: Windows  ELOG Version: v2.7.42111 
Subject: Re: display GMT time instead of local time in Entry time/ Last edit field 

Stefan Ritt wrote:

Dan Duong wrote:

Hi all,

I have set my PC in Time Zone GMT+10:00 but I get GMT time in Entry time/Last edit field.

I have installed in another PC. Which has Time Zone GMT+10:00 but I still get GMT time in Entry time/Last edit field.

Please help. Thank you very much.

 

That's strange. I use the C function localtime() to obtain the local time from Windows. The documentation says that this function checks the Windows control panel  and returns the proper local time. So far, nobody complained so I guess only you have this problem (anybody else to correct me???). The only hint I found is to set the environment variable TZ. So open a DOS box and enter

set TZ=AST+10

then start elogd.exe interactively in that dos box and see if you get something else.

 I did as instructed but time was 20 hours behide

I have entered    set TZ=AST-10   I got the correct time. I think my elog files have been changed by someone. elogd file is running in DOS box now. Please help how to run elog as normal or correct elog files. Which file I should check. Is it elconv.c file? Thank you Stefan.

ELOG V3.1.5-fe60aaf