DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On Debian 10, I tried changing my system time from CDT to UTC using
'ln -sf /usr/share/zoneinfo/UTC localtime'
but the output from "date" now shows "Thu 27 Jun 2019 05:13:34 PM UTC"
Here's what I tried to fix it:
Code:
root@oceanus:/home/andy# timedatectl set-timezone UTC
root@oceanus:/home/andy# date
Thu 27 Jun 2019 05:17:31 PM UTC
root@oceanus:/home/andy# timedatectl set-local-rtc 0
root@oceanus:/home/andy# date
Thu 27 Jun 2019 05:20:39 PM UTC
root@oceanus:/home/andy# timedatectl | grep local
RTC in local TZ: no
root@oceanus:/home/andy# date
Thu 27 Jun 2019 05:20:56 PM UTC
root@oceanus:/home/andy# timedatectl set-time "2019-06-27 17:27:53"
root@oceanus:/home/andy# date
Thu 27 Jun 2019 05:27:54 PM UTC
Last edited by Andy Alt; 06-27-2019 at 12:28 PM.
Reason: formatting
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I mauy be wrong because I haven't read the man pages but I thibk that the time format would be controlled independantly of the time zone. I know when I install OSs I'm given the choice of 12 or 24 hour time (I rememeber this because I'm a 24 hour fan myself).
@273 thanks. The main reason I asked was because I thought it might be affecting this issue with the rmw project I'm trying to troubleshoot. Apparently not the case (time for me to review the code).
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Ah, now, looks like your container may be 12 hours off (unless that's just an example?) Which would be an issue. Is there a "system time set to UTC" option for Docker? Sorry, getting above my head here.
Ah, now, looks like your container may be 12 hours off (unless that's just an example?) Which would be an issue. Is there a "system time set to UTC" option for Docker? Sorry, getting above my head here.
Yeah, an example after some rushed copying and pasting. I just now edited that particular post in the ticket to be more accurate.
Last edited by Andy Alt; 06-27-2019 at 01:07 PM.
Reason: even more accuracy
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Ah, no problem then, just formating. Might be worth trying to find out whether the program in question reads the time wronmg though? Shouldn't matter but if it actually uses "date" rather than reading system time...
Ah, no problem then, just formating. Might be worth trying to find out whether the program in question reads the time wronmg though? Shouldn't matter but if it actually uses "date" rather than reading system time...
formatting was ok, just had an uninitialized pointer to a time struct. Fixed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.