Timestamp in log files are offset by -2 hours

Discussion in 'Bukkit Help' started by Ruprect, Aug 19, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    I have a strange problem, I recently migrated my server from a local windows host to a VPS ubuntu host, and this morning I noticed that the timestamp inside the server.log is offset by -2 hours.

    2011-08-19 07:34:46 [INFO] MichaelGrue [/xxx.xxx.xxx.xxx:52207] logged in with entity id 24189 at ([world] 1043.1825994334044, 72.0, -556.0049801626029)
    On the server, the date command tells me:

    [email protected]:~$ date
    Fri Aug 19 09:42:32 CEST 2011
    and using ls -g to see dates gives me:
    -rw-r--r--  1 minecraft    496874 Aug 19 09:41 server.log
    Additional details:
    Linux minecraft.gruenielsen.dk 2.6.18-028stab092.1 #1 SMP Wed Jul 20 19:47:12 MSD 2011 x86_64 GNU/Linux
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
    I just used the command:

    dpkg-reconfigure tzdata
    And it showed that the Log seems to use the UTS and not the Local Time:

    Current default timezone: 'Europe/Copenhagen'
    Local time is now:      Fri Aug 19 09:57:37 CEST 2011.
    Universal Time is now:  Fri Aug 19 07:57:37 UTC 2011.
    Is it possible to change that somewhere?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
Thread Status:
Not open for further replies.

Share This Page