The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 18:35:01

trinidad
Member
From: Waterford WI
Registered: 2022-11-15
Posts: 37  
Website

tzinfo oddly misconfigured

When I run:

trinidad@devm1:~$ sudo dpkg-reconfigure tzdata
[sudo] password for trinidad: 

Current default time zone: 'America/Chicago'
Local time is now:      Wed Dec  3 06:27:29 CST 2025.
Universal Time is now:  Wed Dec  3 12:27:29 UTC 2025

it comes out backwards. UTC displays local time and local time displays UTC.

Also XFCE 4 panel when using Amerca/Chicago input displays the same wrong time, however if I type cst into the query box its displays correct local time. How did tzinfo get reversed?

TC


Often unawares.

Offline

#2 Yesterday 20:27:55

RedGreen925
Member
Registered: 2024-12-07
Posts: 215  

Re: tzinfo oddly misconfigured

it comes out backwards. UTC displays local time and local time displays UTC.

That is correct as the Central time zone in the US is a 6 hours offset from the UTC. So when it is just over 6AM in Central time it is just past 12PM in UTC. If it is just past 12PM when you ran this command local time then putting on my mind reader hat I will go with a dual boot machine with the Windows on it and not set to universal time so the clock is always messed up when it is used then Linux is booted again. Two choices for that scenario either set the Linux machine to always use local time or the Windows to use the Universal time then the clock will always be correct.

Offline

#3 Today 01:08:55

trinidad
Member
From: Waterford WI
Registered: 2022-11-15
Posts: 37  
Website

Re: tzinfo oddly misconfigured

Actually not the case here. The correct CST in the example is 12:27 PM and I'm well aware of the 6 hour offset. And no this is not a Windows machine, in fact Debian 13 with Devuan in a VM on the same machine. All the time values on the Debian host are correct and other VMs on the same host are correct. Only Devuan seems to persist with the tzinfo error. Also the XFCE panel clock will display the correct time if I type in CST in the selection box rarher than America/Chicago which shouldn't work that way at all on Devuan XFCE. The machine has never had Windows on it ever. It was purchased without an OS.

TC


Often unawares.

Offline

#4 Today 01:18:11

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,548  

Re: tzinfo oddly misconfigured

Which kind of virtual machine is it?
Which time sync program do you use?

Online

#5 Today 01:19:28

rbit
Member
Registered: 2018-06-12
Posts: 90  

Re: tzinfo oddly misconfigured

What is your VM software?
If it happens to be virtualbox, open up the virtual machine's settings.  On the "System" / "Motherboard" screen, there's a checkbox "Enable Hardware Clock in UTC Time."  That should be checked (enabled).  If you use something other than virtualbox, poke around in its settings for something similar.

Offline

Board footer