[Solved] Wrong timestamp in OpenVPN-Log

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Locked
thraze
OpenVpn Newbie
Posts: 3
Joined: Thu Dec 31, 2015 1:32 pm

[Solved] Wrong timestamp in OpenVPN-Log

Post by thraze » Thu Dec 31, 2015 2:00 pm

Hi,

i have a problem with the timestamp in OpenVPN log. Despite the correct system date/time, the timestamp is always 1 hour off (during summertime 2 hours off). Where does OpenVPN obtain the time from?

The OpenVPN-Server (version 2.3.6) is running on a gentoo installation.

I found this thread https://openvpn.net/archive/openvpn-use ... 00232.html and can reproduce that the timestamp is ok until it swtich into the jail.

I tried copy the timezone/localtime file into the jail, but it didn't help.

Maybe someone has some ideas.

Best regards,
Thraze

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Wrong timestamp in OpenVPN-Log

Post by Traffic » Thu Dec 31, 2015 2:15 pm

thraze wrote:I tried copy the timezone/localtime file into the jail, but it didn't help.
Did you set the necessary file permissions for the openvpn daemon to be able to read the file ?

thraze
OpenVpn Newbie
Posts: 3
Joined: Thu Dec 31, 2015 1:32 pm

Re: Wrong timestamp in OpenVPN-Log

Post by thraze » Mon Jan 04, 2016 9:42 am

Did you set the necessary file permissions for the openvpn daemon to be able to read the file ?
Sorry this took so long.

Yes i did.

thraze
OpenVpn Newbie
Posts: 3
Joined: Thu Dec 31, 2015 1:32 pm

Re: Wrong timestamp in OpenVPN-Log

Post by thraze » Tue Jan 05, 2016 4:00 am

Oh man, it worked now. Of course timezone/localtime belongs into jail/etc/ ...

Thanks.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Wrong timestamp in OpenVPN-Log

Post by Traffic » Tue Jan 05, 2016 2:34 pm

Thanks for letting us know 8-)

Locked