Koozali.org: home of the SME Server

BIOS TIME in LOG files ?

Offline ProxYNL

  • 3
  • +0/-0
BIOS TIME in LOG files ?
« on: May 21, 2011, 04:17:58 PM »
When i look at the time in /var/log/xferlog i see that the log itself is the correct time.
But when i look in the file the time is 2 hours behind.
Could it be that this is the Bios time?

- So its now here 16:15
- The file shows 16:15 and that is correct
- In the file the last entry time shows 14:15

Does more of you have this?


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: BIOS TIME in LOG files ?
« Reply #1 on: May 21, 2011, 04:44:42 PM »
When i look at the time in /var/log/xferlog i see that the log itself is the correct time.
But when i look in the file the time is 2 hours behind.

You are referring specifically to ftp transfer logs. This is a timezone configuration issue, and perhaps related to using chroot. See:

http://forums.contribs.org/index.php?topic=47407.0

Offline ProxYNL

  • 3
  • +0/-0
Re: BIOS TIME in LOG files ?
« Reply #2 on: May 21, 2011, 05:42:44 PM »
Thanks Charlie for your fast respons.

I did:

 mkdir -p /etc/e-smith/templates-custom/etc/proftpd.conf/
(create a file called "05TimeZone" with the echo command in the above directory created)
 SetEnv TZ :/etc/localtime ' > /etc/e-smith/templates-custom/etc/proftpd.conf/05TimeZone
 expand-template /etc/proftpd.conf
 sv restart ftp

And it works!

But (echo '# Set the TZ environment variable to be same as the server time zone TimesGMT off)
I left out (got error when starting ftp back up)

« Last Edit: May 21, 2011, 05:50:45 PM by ProxYNL »