You are not logged in.
Pages: 1
i installed a new motherboard, and suddenly whenever i reboot the clock gets 2 hour reduction .
i tried setting my clock in bios as well but didn't solve the problem .
here is timedatectl output :
Local time: Thu 2015-11-12 17:40:10 IST
Universal time: Thu 2015-11-12 15:40:10 UTC
RTC time: Thu 2015-11-12 15:40:10
Time zone: Asia/Jerusalem (IST, +0200)
Network time on: no
NTP synchronized: no
RTC in local TZ: noOffline
That looks correct to me...
Offline
my problem bassicaly is my operating system clock is two hours ahead of my motherboard .
and if i edit my bios clock then my os changes in accordance and vice versa so they never get synched .
Last edited by yakoub (2015-11-12 15:50:27)
Offline
According to the output you posted, the clock is correct. Local time is currently 5:51 pm?
Offline
Yes, why is that a problem? Do you want your operating system time in UTC? Or would you want your hardware clock (motherboard) to keep time in your local time zone?
Your local time zone is two hours ahead of UTC, so under normal conditions your system time should be two hours ahead of the hardware clock.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Is it not 17:54 where you are as I post this?
Was it not 17:40 when you first posted?
What to you mean by OS Clock? Does it mean the output od date in Linux?
Or does it mean what some other operating system from the US Pacific Northwest that was never designed to be attached to the Internet thinks the time is?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Leave the motherboard's clock at UTC time which is 2 hours behind you. UNIX/BSD/Linux set hardware clock to UTC and make adaptations to local time when the time is presented to the user. It means that it's easier to convert the time and UTC does not have daylight saving or anything similar. All the filesystem timestamps are in UTC as well so each user who views it will see the time converted to their local time, in case the file is sent to a different machine with a different local time.
Leave the motherboard clock be and enable NTP synchronization and specify the timezone and you'll be good. My Linux machines have hardware clock (realtime clock on motherboard) to UTC and I specify my timezone in operatingsystem.
You can either install the NTP package or enable the SNTP client that comes with systemd. For client computers and home servers then the SNTP client is enough.
Enable the SNTP client (systemd-timedated.service) by running timedatectl set-ntp true .
This is what my time information looks like:
Local time: tor 2015-11-12 21:00:09 CET
Universal time: tor 2015-11-12 20:00:09 UTC
RTC time: tor 2015-11-12 20:00:09
Time zone: Europe/Stockholm (CET, +0100)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: noYou don't need to set the RTC to local timezone unless you dual boot Windows. That's the only reason that option is there. It's recommended to keep RTC set to UTC. After you enable the SNTP client, check the status with timedatectl but the synchronization will take a while, it won't be instant. So go back later and check if it's synchronized. This is a non-issue. RTC should be set to UTC since UTC never skips and hour here and there (due to daylight saving and BS like that) and it only adapts to leap seconds and leap days (on leap years). This has been common practice for decades. You remove the complexity of timezones and daylight savings from the system and leave that to the non-critical part that presents it to the user.
Last edited by SaltySockets (2015-11-12 20:10:15)
Offline
Pages: 1