Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: ProxYNL on May 21, 2011, 04:17:58 PM

Title: BIOS TIME in LOG files ?
Post by: ProxYNL 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?

Title: Re: BIOS TIME in LOG files ?
Post by: CharlieBrady 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
Title: Re: BIOS TIME in LOG files ?
Post by: ProxYNL 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)