You are not logged in.
Pages: 1
Topic closed
Hello! I've been using first Chromium, and then Google Chrome, but on both of these browsers i have a problem with date.
Both my hardware clock and system clock shows the same hour, but google chrome is 2 hours before them.
I've set up timezone using
timedatectl set-timezone Europe/Warsaw command.
This is output of timedatectl command
timedatectl
Local time: Tue 2017-06-06 14:37:48 CEST
Universal time: Tue 2017-06-06 12:37:48 UTC
RTC time: Tue 2017-06-06 12:37:48
Time zone: Europe/Warsaw (CEST, +0200)
Network time on: no
NTP synchronized: no
RTC in local TZ: noAnd this is the output new Date().toUTCString() on chrome
"Tue, 06 Jun 2017 12:41:04 GMT"Any ideas what went wrong?
Last edited by bezik (2017-06-06 12:43:52)
Offline
This is output of timedatectl command
timedatectl Local time: Tue 2017-06-06 14:37:48 CEST Universal time: Tue 2017-06-06 12:37:48 UTC RTC time: Tue 2017-06-06 12:37:48 Time zone: Europe/Warsaw (CEST, +0200) Network time on: no NTP synchronized: no RTC in local TZ: noAnd this is the output new Date().toUTCString() on chrome
"Tue, 06 Jun 2017 12:41:04 GMT"Any ideas what went wrong?
Nothing went wrong. GMT = UTC. You are using toUTCString(), which will "Convert a Date object to a string, according to universal time". If you want local time, use one of the other methods such as toDateString().
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Sorry, i've hurried up. It's not only about this one function. When i get a message on facebook, slack or anything else like that the time is also shifted by -2 hours.
Offline
Sorry, i've hurried up. It's not only about this one function. When i get a message on facebook, slack or anything else like that the time is also shifted by -2 hours.
Does toDateString report the correct time?
Can you post a link to a publicly accessible webpage that reports the wrong time?
Also, what is the output of
echo $TZMy Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Sorry for trouble, seems like it's all working correctly after i've set up timezone and restarted ntpd.service.
Offline
Please remember to mark this thread as solved by editing the first ppost and adding [SOLVED] to the title. It lets other people, who may face a similar issue in the future, know that this thread has a possible solution. Thank you.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Hello everyone, I just found this thread and I have the same issue.
Although, I couldn't understand exactly how to apply this feature to my system. What do I have to do exactly?
Thank you in advance.
Offline
This thread is five years old. Please do not necrobump.
Closing.
Offline
Pages: 1
Topic closed