LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2019, 08:39 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,561

Rep: Reputation: 177Reputation: 177
How to Reset KDE desktop time zone


I have an odd problem. Somehow, the clock on my KDE desktop switched itself to UTC and the clock time is 4 hours ahead of my actual EDT time. If I open a shell, the time correctly shows EDT. If I go to System Settings > Date & Time > Time Zone, it also correctly shows EDT and the correct time. Where is the KDE launcher panel getting UTC?

More importantly, how can I "fix" that without either rebooting or restarting the KDE desktop? I have lots of windows open and am working on and I really don't want to save and close everything to either reboot or restart KDE.

KDE 4.14.32, Slackware64 14.2, kernel 4.4.182

Suggestions?
 
Old 07-31-2019, 08:48 PM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 691
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
First I would check files:

/etc/localtime
/etc/localtime-copied-from
/etc/hardwareclock

and if necessary adjust it to the correct file under
/usr/share/zoneinfo/
and ensure /etc/hardwareclock is correct

As root you can probably execute this to fix:
/usr/sbin/timeconfig
if necessary.

Then you may need to reset/set the KDE clock

delete text, hardware clock setting is /etc/hardwareclock of all things



John

Last edited by jmccue; 07-31-2019 at 09:00 PM. Reason: many fixes
 
Old 07-31-2019, 09:21 PM   #3
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Use the right mouse button to click the clock.
Choose "Digital Clock Settings"
Next choose "Time Zones"
At the bottom you can choose "Clock Defaults to" either Local or UTC
 
1 members found this post helpful.
Old 07-31-2019, 09:25 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,329
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
Linux defaults to UTC. To show local time, you can use the command tzselect to select your time zone. You will likely have to run the command as root.
 
Old 08-01-2019, 12:10 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,561

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Gordie View Post
Use the right mouse button to click the clock.
Choose "Digital Clock Settings"
Next choose "Time Zones"
At the bottom you can choose "Clock Defaults to" either Local or UTC
all: all of the /etc/local*, etc. files correctly show the timezone:
Code:
# ls -l /etc/localtime-copied-from 
lrwxrwxrwx 1 root root 30 Jul  4  2017 /etc/localtime-copied-from -> /usr/share/zoneinfo/US/Eastern
The fix was Gordie's suggestion. Interestingly, in the "Time Zones" setting, it did already have "Clock defaults to Local", although the "Area" checkbox did have "UTC". But, I went ahead and clicked OK anyway and poof! the clock was back to EDT! (I left "Area" still set to UTC -- suggestive of Frank Bell's comment, but I didn't apparently need to change that -- a bit confusing!)

Last edited by mfoley; 08-01-2019 at 12:27 AM.
 
  


Reply

Tags
clock off, kde



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with zone-info in time zone data section Chapter-6.9 Glibc-2.24 koustubh Linux From Scratch 2 07-08-2020 04:38 PM
I find file zone in the slave zone to the do a transfer of zone from Windows Server 2012 as master dns and CentOS as slave DNS. To learn Linux - Newbie 1 09-02-2016 09:36 AM
[SOLVED] The system time switches the time zone automatically but doesn't change the time RandomTroll Linux - Software 9 03-15-2013 12:28 PM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
Run script in EST time zone but server is in GMT zone jeesun Linux - Networking 1 04-04-2010 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration