Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Time issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Wed Jul 19, 2017 12:32 am    Post subject: [SOLVED] Time issue Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Jul 19, 2017 5:42 am    Post subject: Reply with quote

Does the System time wiki article help solving your problem?
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2038
Location: United Kingdom

PostPosted: Wed Jul 19, 2017 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Wed Jul 19, 2017 1:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Wed Jul 19, 2017 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2038
Location: United Kingdom

PostPosted: Wed Jul 19, 2017 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Thu Jul 20, 2017 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum