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: 66469     Entry time: Tue Jul 28 11:04:01 2009     In reply to: 66467     Reply to this: 66476
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Windows  ELOG Version: v2.7.42111 
Subject: Re: display GMT time instead of local time in Entry time/ Last edit field 

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.

ELOG V3.1.5-3fb85fa6