Panel: Time in Daemon isn't correct

Created on 15 Aug 2020  路  5Comments  路  Source: pterodactyl/panel

Background (please complete the following information):

  • Panel or Daemon: Daemon
  • Version of Panel/Daemon: Wings 1.0.0 Beta 9
  • Server's OS: Ubuntu 20.04
  • Your Computer's OS & Browser: Windows 10 + Chrome Latest Version

Describe the bug
The Time in the Deamon its not correct. I have it installed on Ubuntu 20.04
In the logs from Minecraft and the Console are 2 Hours behind.
Here ScreenShot from the System and the Time with 3 commands [hwclock, date, timedatectl]
https://prnt.sc/u04qjz

To Reproduce
Setting up the Server [apt-get update, apt-get upgrade]
Show its nano, screen and htop installed, when not i installed it
Installed the Panel first with mysql-db
Installed the Daemon

Most helpful comment

I'm getting pretty tired of these issues cropping up constantly. No matter what crazy complicated shit I end up coming up with there is _always_ some process or system that struggles to fetch a time correctly.

Passing through the TZ= flag is a very standardized way of handling timezones. I'd much rather just continue doing that rather than relying on these timezone mounts which are flaky at best and every OS seems to handle differently. At this point I think it makes more sense for the images running the games to be handling any timezone related issues, be that reading the TZ variable and executing commands to set the time correctly in the container, or passing that flag along to the game in some game-specific manner.

I say this only because I am out of ideas for building a sane system to get a timezone correctly into a container. If mounting _two_ timezone related files and setting a TZ variable isn't enough then that is an issue with the game itself, and not Pterodactyl. Or your system is misconfigured.

And yes, as @parkervcp pointed out, you'll always end up having some level of confusion with time outputs unless I come up with an even more complicated system to parse out times from logs and convert them into a user's timezone. Which is actually less difficult than imagined if processes would just respect the TZ environment variable rather than needing container or host specific modifications.

All 5 comments

Dupe of #2073 we just should reopen that

This is also a duplicate of #2195 Which also calls out this sort of issue.

Nope #2195 is about the extremly wrong formatted time of backups in the panel.
This is about wrong timezones inside of the docker container.

I am going to go with a "people will still complain about the time because it's not in their timezone" argument as well.
If you have a user outside the server timezone the time and date will still be wrong to that user.

Honestly the "server time is in UTC" complaint is tedious to me. Imaging having servers around the globe and if they were all set in their respective time zones trying to parse any kind of logging would be stupid to make sure they were all correct.

Also called out in the other conversation is that it's near impossible to get a unified timezone out of the different server distros.

I'm getting pretty tired of these issues cropping up constantly. No matter what crazy complicated shit I end up coming up with there is _always_ some process or system that struggles to fetch a time correctly.

Passing through the TZ= flag is a very standardized way of handling timezones. I'd much rather just continue doing that rather than relying on these timezone mounts which are flaky at best and every OS seems to handle differently. At this point I think it makes more sense for the images running the games to be handling any timezone related issues, be that reading the TZ variable and executing commands to set the time correctly in the container, or passing that flag along to the game in some game-specific manner.

I say this only because I am out of ideas for building a sane system to get a timezone correctly into a container. If mounting _two_ timezone related files and setting a TZ variable isn't enough then that is an issue with the game itself, and not Pterodactyl. Or your system is misconfigured.

And yes, as @parkervcp pointed out, you'll always end up having some level of confusion with time outputs unless I come up with an even more complicated system to parse out times from logs and convert them into a user's timezone. Which is actually less difficult than imagined if processes would just respect the TZ environment variable rather than needing container or host specific modifications.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TylerBurr picture TylerBurr  路  4Comments

jer3m01 picture jer3m01  路  3Comments

ghost picture ghost  路  4Comments

Derkades picture Derkades  路  4Comments

stijnb1234 picture stijnb1234  路  3Comments