You are not logged in.

#1 2016-06-28 09:52:03

Ketchup901
Member
Registered: 2016-05-18
Posts: 47

[Solved] Must have time setting set to UTC to display correct time

I live in Stockholm, so my time zone is CEST in the summer (Europe/Stockholm in systemd).
This is the output of timedatectl:

      Local time: Tue 2016-06-28 11:46:52 UTC
  Universal time: Tue 2016-06-28 11:46:52 UTC
        RTC time: Tue 2016-06-28 11:46:53
       Time zone: UTC (UTC, +0000)
 Network time on: no
NTP synchronized: no
 RTC in local TZ: no

As you can see, the universal time is set to 11:46, but when I'm writing this, the actual UTC time is 9:46.
Because of this, I have to set my time zone to UTC, or the time will display 2 hours in advance.
I assume changing the "Universal time" will fix my problem, so my question is: how do I do that?
I'm sorry if this is a retard-level question.
Also the consequences of setting the time zone to UTC is that on some web services, things will appear to have happened 2 hours ago, for example when posting on forums.

Last edited by Ketchup901 (2016-07-24 10:33:07)

Offline

#2 2016-06-28 11:23:50

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [Solved] Must have time setting set to UTC to display correct time

Do you by any chance have windows installed? Windows likes to have the RTC in local time, not UTC. There are some tricks you can use in that case, one of which is to force Windows to use UTC, the other to force linux to use localtime.

If you don't have Windows, try setting up some sort of synchroniser to sync your RTC to the actual time and set your timezone.

See the wiki for more info: https://wiki.archlinux.org/index.php/Time

Offline

#3 2016-06-28 13:31:18

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [Solved] Must have time setting set to UTC to display correct time

Ketchup901 wrote:

I assume changing the "Universal time" will fix my problem, so my question is: how do I do that?

Set the system clock to the correct UTC time:

https://wiki.archlinux.org/index.php/Time#Set_clock

Then set your timezone to Europe/Stockholm:

https://wiki.archlinux.org/index.php/Time#Time_zone

Last edited by 2ManyDogs (2016-06-28 13:34:11)

Offline

#4 2016-06-28 19:24:38

Ketchup901
Member
Registered: 2016-05-18
Posts: 47

Re: [Solved] Must have time setting set to UTC to display correct time

I did what you suggested 2ManyDogs, it worked but RTC is now also in UTC, which according to runical will have issues when booting Windows, which I indeed do have installed.

Are those issues in Windows or does it mess with the Linux installation, since it would advance the RTC by 2 hours?
This will fix it, right?

Offline

#5 2016-06-28 19:59:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [Solved] Must have time setting set to UTC to display correct time

Ketchup901 wrote:

which according to runical will have issues when booting Windows, which I indeed do have installed.

Just uninstall Windows tongue

Which version of that OS do you have?  There are registry entries that can make that OS behave in a lesstoy-like manner.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#6 2016-06-29 03:20:09

Ketchup901
Member
Registered: 2016-05-18
Posts: 47

Re: [Solved] Must have time setting set to UTC to display correct time

ewaller wrote:
Ketchup901 wrote:

which according to runical will have issues when booting Windows, which I indeed do have installed.

Just uninstall Windows tongue

Which version of that OS do you have?  There are registry entries that can make that OS behave in a lesstoy-like manner.

I really wish I could, I do, but I need it for certain programs that don't work under WINE...
I have Windows 7, so I should be fine right?
Just btw I'm not some Windows pleb, I rarely boot it tongue

Offline

#7 2016-06-29 03:24:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: [Solved] Must have time setting set to UTC to display correct time

Windows 7 registry changes work well.  8, 8.1 are hit and miss.  Windows 10, mostly miss.
https://wiki.archlinux.org/index.php/ti … in_Windows

Edit: I hear you.  My wife manages gymnastics meets.  When she does, I get to officiate by running the computer controlled scoring systems.  Very vertical market.  Very windows.  It works well in VirtualBox though

Last edited by ewaller (2016-06-29 03:26:23)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#8 2016-06-29 07:29:02

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [Solved] Must have time setting set to UTC to display correct time

Heh, no need to link the usernames. We won't get a notification from that smile

But indeed, as ewaller said, Windows 7 should be fine (I run such a setup on my second laptop).

EDIT: Also, don't forget to set up a clock synchroniser like NTP. Keeps you in sync when connected to the internet.

Last edited by runical (2016-06-29 07:30:03)

Offline

#9 2016-07-02 17:24:14

Ketchup901
Member
Registered: 2016-05-18
Posts: 47

Re: [Solved] Must have time setting set to UTC to display correct time

ewaller wrote:

Windows 7 registry changes work well.  8, 8.1 are hit and miss.  Windows 10, mostly miss.
https://wiki.archlinux.org/index.php/ti … in_Windows

Edit: I hear you.  My wife manages gymnastics meets.  When she does, I get to officiate by running the computer controlled scoring systems.  Very vertical market.  Very windows.  It works well in VirtualBox though

Alright, thanks a lot!

runical wrote:

Heh, no need to link the usernames. We won't get a notification from that smile

But indeed, as ewaller said, Windows 7 should be fine (I run such a setup on my second laptop).

EDIT: Also, don't forget to set up a clock synchroniser like NTP. Keeps you in sync when connected to the internet.

Alright, got it.
Which synchronizer would you recommend? (I want install-and-forget preferably)

Offline

#10 2016-07-02 19:32:42

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [Solved] Must have time setting set to UTC to display correct time

ntpd may be overkill for you, but it is certainly install and forget.

pacman -Syu ntp
systemctl enable ntpd.service
systemctl start ntpd.service

https://wiki.archlinux.org/index.php/Ne … col_daemon

Offline

#11 2016-07-04 09:49:14

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: [Solved] Must have time setting set to UTC to display correct time

Since the system already has sytemd installed, just enabling the ntp functionality (systemd-timesyncd) is probably fine for you.
https://wiki.archlinux.org/index.php/systemd-timesyncd

Last edited by Omar007 (2016-07-04 09:50:49)

Offline

Board footer

Powered by FluxBB