View previous topic :: View next topic |
Author |
Message |
davidbrooke Guru
Joined: 03 Jan 2015 Posts: 341
|
Posted: Wed Jul 19, 2017 12:32 am Post subject: [SOLVED] Time issue |
|
|
I recently moved from eastern time to central time. The previous time zone is still being shown in chromium on some sites.
Example
http://www.marketwatch.com/newsviewer
I changed the following after moving:
From
cp /usr/share/zoneinfo/America/New_York /etc/localtime && echo "America/New_York" > /etc/timezone
To
cp /usr/share/zoneinfo/America/Chicago /etc/localtime && echo "America/Chicago" > /etc/timezone
This corrected my system clock but I also noticed that the utc time is set to localtime.
sudo hwclock
~ $ sudo hwclock
Password:
2017-07-18 18:59:39.062230-6:00
When I look at the time in bios setting, it is set to utc
23:59
Here is my /etc/conf.d/hwclock:
Code: | # Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time). If that clock is set to the local time, then
# set CLOCK to "local". Note that if you dual boot with Windows, then
# you should set it to "local".
clock="UTC"
# If you want the hwclock script to set the system time (software clock)
# to match the current hardware clock during bootup, leave this
# commented out.
# However, you can set this to "NO" if you are running a modern kernel
# and using NTP to synchronize your system clock.
#clock_hctosys="YES"
# If you do not want to set the hardware clock to the current system
# time (software clock) during shutdown, set this to no.
#clock_systohc="YES"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here. Alpha users may wish to use --arc or --srm here.
clock_args="" |
Any ideas?
Last edited by davidbrooke on Thu Jul 20, 2017 2:32 pm; edited 1 time in total |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Wed Jul 19, 2017 5:42 am Post subject: |
|
|
Does the System time wiki article help solving your problem? |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2038 Location: United Kingdom
|
Posted: Wed Jul 19, 2017 10:54 am Post subject: |
|
|
The hwclock command always shows local time, even if you keep your hardware clock in UTC.
man hwclock wrote: | -r, --show
Read the Hardware Clock and print the time on Standard Output. The time shown is always in local time, even if you keep your Hardware Clock in Coordinated Universal Time. See the --utc option. |
The following blog post goes into detail about how to configure the clock in installations using OpenRC and in installations using systemd: Configuring the Linux clock. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
davidbrooke Guru
Joined: 03 Jan 2015 Posts: 341
|
Posted: Wed Jul 19, 2017 1:20 pm Post subject: |
|
|
If I could get someone (other than eastern time zone) to try out this url and tell me if the post times are in eastern time zone or your time zone:
http://www.marketwatch.com/newsviewer
Thanks |
|
Back to top |
|
|
davidbrooke Guru
Joined: 03 Jan 2015 Posts: 341
|
Posted: Wed Jul 19, 2017 1:38 pm Post subject: |
|
|
charles17 wrote: | Does the System time wiki article help solving your problem? |
Yes I have basically followed that url 100's of times.
The clock times are set correctly except for some websites. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2038 Location: United Kingdom
|
Posted: Wed Jul 19, 2017 2:15 pm Post subject: |
|
|
davidbrooke wrote: | If I could get someone (other than eastern time zone) to try out this url and tell me if the post times are in eastern time zone or your time zone:
http://www.marketwatch.com/newsviewer
Thanks |
They're displayed in EDT on that Web page when I view it in Firefox. I'm in the BST time zone (UTC+1) -- that's British Summer Time -- and my laptop's Hardware Clock is configured for UTC (see below) and my /etc/timezone file is configured for the UK (Europe/London).
Code: | fitzcarraldo@clevow230ss ~ $ cat /etc/conf.d/hwclock
# Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time). If that clock is set to the local time, then
# set CLOCK to "local". Note that if you dual boot with Windows, then
# you should set it to "local".
clock="UTC"
# If you want the hwclock script to set the system time (software clock)
# to match the current hardware clock during bootup, leave this
# commented out.
# However, you can set this to "NO" if you are running a modern kernel
# and using NTP to synchronize your system clock.
#clock_hctosys="YES"
# If you do not want to set the hardware clock to the current system
# time (software clock) during shutdown, set this to no.
#clock_systohc="YES"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here. Alpha users may wish to use --arc or --srm here.
clock_args="" |
_________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
davidbrooke Guru
Joined: 03 Jan 2015 Posts: 341
|
Posted: Thu Jul 20, 2017 2:31 pm Post subject: |
|
|
Thanks for all the help!
I'm going to close this issue since it seems that the websites are controlling the times and not letting the users computer set the time. |
|
Back to top |
|
|
|