Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation of uptime broken with UTC time set rather than local timezone #24

Open
deddc23efb opened this issue Dec 27, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@deddc23efb
Copy link

deddc23efb commented Dec 27, 2021

On my ubuntu 20.04 system, the FTS UI shows an incorrect negative uptime that obviously has UTC offset messing up the math.

My location us UTC-5, with the timezone on my system set to UTC I see the following output:

[UP TIME] [START TIME]
-5H -59M -24S 27/12/2021 23:12

Clearly one of the methods of accessing the time is using UTC and the other isn't.
The settings on Linux show:
:~$ timedatectl
Local time: Mon 2021-12-27 23:24:11 UTC
Universal time: Mon 2021-12-27 23:24:11 UTC
RTC time: Mon 2021-12-27 23:24:12
Time zone: UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

If I set the timezone on my box to the actual local timezone for my system, the display is correct.

@brothercorvo brothercorvo added the enhancement New feature or request label Mar 30, 2022
@brothercorvo brothercorvo added this to the 2.4 milestone Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants