The time now is Tue 19 Jan 2021, 20:57
All times are UTC - 4 |
Page 52 of 104 [1549 Posts] |
Goto page: Previous 1, 2, 3, ..., 50, 51, 52, 53, 54, ..., 102, 103, 104 Next |
Author |
Message |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 09:47 Post subject:
|
|
PeasyClock manages your system clock - date, time and zone.
Debian likes to run in UTC mode - it synchronizes its clock with Greenwich, England. Check the file /etc/adjtime to see the current mode. Use the Mode button for quick access to this file.
If you want to stick with UTC, here is the setup.
1. Google "current time greenwich england"
2. Run PeasyClock.
3. The initial time zone is Etc/UTC. Set your own time zone. Refresh.
4. Set your current local date and time. Note: Sometimes, the tray clock won't sync up until the next reboot.
Important: Stretch auto-updates the BIOS clock at the end of a session, so it's essential that you have the zone and local time set correctly in PeasyClock BEFORE you quit. You do NOT need to run "Update hardware clock".
5. Reboot. Open the BIOS and check the hardware clock. It should be set to Greenwich time!
6. The Stretch tray clock will show your local time. It takes the hardware UTC time and adjusts it using your time zone.
Note to Puppy users: Puppy works in LOCAL mode by default (you can switch it to UTC) and stores the setting in /etc/clock. It does NOT auto-update the BIOS clock at shutdown. But if the clock already has the correct time for your mode, you do NOT need to change it. See below.
-----------------------------
If you are sharing your machine with Windows or Puppy, local time is the preferred choice. Other OS's don't know that the clock is set to Greenwich time!
1. In /etc/adjtime, change UTC to LOCAL.
2. Set your own time zone. Refresh.
3. Set your date and time. See the Important note above.
4. Reboot. Open the BIOS and check the clock. It should now be your own local time.
5. The Stretch tray clock will show your local time and PeasyClock will show the correct zone.
Read here for more examples.
--------------------------
Updates: Version 1.4 has several additions.
1. The Time Zone list now contains the default zone Etc/UTC.
2. The BIOS button displays the actual current value of the hardware clock regardless of your mode. So you don't need to boot into the BIOS to check it.
3. The Now button shows you the current time at any location selected from the Time Zone list. (You don't need to set the zone first.)
4. You can optionally set the date/time from an NTP server. On a Puppy system, you would then update the hardware clock in local mode.
-------------------
PeasyClock is now in Fred's repo. It installs in the System menu.
-----------------------
 |
Description |
|
Filesize |
22.14 KB |
Viewed |
607 Time(s) |

|
Last edited by rcrsn51 on Wed 08 Nov 2017, 10:10; edited 34 times in total
|
Back to top
|
|
 |
zagreb999
Joined: 11 Apr 2014 Posts: 573 Location: Yugoslavija
|
Posted: Wed 01 Nov 2017, 10:13 Post subject:
tzclock_3.0.6-1_i386.deb Subject description: TIME, ZONE, CLOCK |
|
REGARDS
TIME, ZONE, CLOCK
BETTER, THE BEST IS
tzclock_3.0.6-1_i386.deb
IT WORKS PERFECTLY
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 10:20 Post subject:
Re: tzclock_3.0.6-1_i386.deb Subject description: TIME, ZONE, CLOCK |
|
zagreb999 wrote: | BETTER, THE BEST IS tzclock_3.0.6-1_i386.deb |
How do you know? You haven't even bothered to try PeasyClock yet.
|
Back to top
|
|
 |
fredx181

Joined: 11 Dec 2013 Posts: 4481 Location: holland
|
Posted: Wed 01 Nov 2017, 14:12 Post subject:
|
|
rcrsn51 wrote: | PeasyClock manages your system clock - date, time and zone. Read the Help for information about UTC versus local time modes. |
Very good! I tested using the local time setup. I always used in Debian for setting up timezone "dpkg-reconfigure tzdata", but it doesn't give the option to change the time, so I had to change (to localtime) in the BIOS, your program has that option, so no need to go in the BIOS.
Added to repositories and added link to your post in useful info section at first post.
EDIT: Also added your cputemp package to repos, very nice also, thanks!
@zagreb999 Can you please stop posting discouraging comments ?
Fred
_________________ Dog Linux website
Tinylinux blog by wiak
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 14:25 Post subject:
|
|
Thanks. I just now posted a new version (still 1.0) with online help.
It took a while to figure this out. It looks like the hwclock tool automatically updates /etc/adjtime depending on which mode you pick to set the hardware clock.
I originally started this project for Puppy, which scatters date/time/zone functions over several applets.
|
Back to top
|
|
 |
fredx181

Joined: 11 Dec 2013 Posts: 4481 Location: holland
|
Posted: Wed 01 Nov 2017, 15:09 Post subject:
|
|
Hi Bill, OK, replaced older peasyclock with your new version in repos.
Tested again now (fresh Stretch-Live install) with localtime setup, but didn't edit /etc/adjtime (so kept as UTC) and all worked as expected after configuring peasyclock ,(after reboot it was changed to LOCAL in /etc/adjtime)
So it seems to me that this, what you wrote, is not needed ?
Quote: | 1. In /etc/adjtime, change UTC to LOCAL |
Fred
_________________ Dog Linux website
Tinylinux blog by wiak
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 15:22 Post subject:
|
|
If your hardware clock currently has the correct local time and you don't want to update it with PeasyClock, you would need to manually change /etc/adjtime. (I think).
Otherwise, Stretch would assume that the hardware clock time was actually UTC and it would display your local time incorrectly.
|
Back to top
|
|
 |
fredx181

Joined: 11 Dec 2013 Posts: 4481 Location: holland
|
Posted: Wed 01 Nov 2017, 15:56 Post subject:
|
|
Ok, did manually change to LOCAL in /etc/adjtime now. Then, If I change timezone in peasyclock and do refresh, the time changes to one hour later, if I keep it like that, and reboot, my hardware clock is wrong set, so changing the time in peasyclock to the correct (local) time is absolutely necessary anyway, I think, no matter if I edited /etc/adjtime or not.
But perhaps I misunderstood what you mean.
Fred
_________________ Dog Linux website
Tinylinux blog by wiak
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 16:45 Post subject:
|
|
This gets confusing, doesn't it? I guess that's why Debian likes to leave the hardware clock as UTC and handle all changes through the time zone selection.
Here is what I tried.
1. I set the BIOS clock to my own local time, as if it were a Windows machine.
2. I boot a clean install of Stretch.
3. I install PeasyClock.
4. The initial, default timezone is Etc/UTC and the tray clock has my correct local time. That's because Stretch assumes that I am currently in Greenwich and it doesn't need to adjust the time.
5. I change the time zone to Canada/Eastern and refresh. The time is now wrong by 4 hours (5 time zones minus daylight savings).
6. I set the time correctly JUST for the purposes of this session.
7. I do NOT update the hardware clock, because I know that it contains my correct local time.
8. I manually update /etc/adjtime to LOCAL.
9. I reboot. The tray clock time is correct. Because I am in local mode, Stretch doesn't need to adjust it for the time zone.
10. When I run the "date" command, it shows my correct time and the correct EDT time zone.
----------------------
In your example, it sounds like the BIOS clock was previous set to Greenwich, so your time zone change to Holland put the local time one hour off.
In that case, you would definitely need to update the hardware clock to Holland time.
[Edit] Apparently, if you are in LOCAL mode and make a time zone change, Stretch will sometimes automatically adjust the BIOS clock for you to the new zone. Which would mess up your Windows time.
Now I am really confused.
Last edited by rcrsn51 on Wed 01 Nov 2017, 17:18; edited 1 time in total
|
Back to top
|
|
 |
fredx181

Joined: 11 Dec 2013 Posts: 4481 Location: holland
|
Posted: Wed 01 Nov 2017, 17:17 Post subject:
|
|
rcrsn51 wrote: | This gets confusing, doesn't it? |
Well, not very much, I think.
All I tried to mention is that manually editing /etc/adjtime to set to LOCAL may be not needed at all (although it does not harm of course), configuring your program the right way does it all from what I tested.
But not sure, I'll do some more testing tomorrow (getting late here now)
Fred
_________________ Dog Linux website
Tinylinux blog by wiak
|
Back to top
|
|
 |
dancytron
Joined: 18 Jul 2012 Posts: 1555
|
Posted: Wed 01 Nov 2017, 17:22 Post subject:
|
|
FWIW, I changed me etc/adjtime to local, set my timezone (U.S. Central), then installed ntp.
On reboot, everything was correct and it coexisted with Windows XP without an issue.
Maybe it is the order that you do things that matters (i.e. set hardware clock to correct value last).
My notes:
Quote: |
12. /etc/adjtime from UTC to LOCAL. Set timezone to central. save2flash
13. Reboot. Time is wrong.
root@live:~# dpkg-reconfigure tzdata
Current default time zone: 'America/Chicago'
Local time is now: Fri Oct 13 11:51:20 CDT 2017.
Universal Time is now: Fri Oct 13 16:51:20 UTC 2017.
apt-get install ntp
Now time is correct.
root@live:~# date
Fri Oct 13 16:47:59 CDT 2017
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 18:40 Post subject:
|
|
Thanks. Could you try the following?
1. Imagine you fly to LA.
2. You open your laptop and set the new time zone.
3. Does ntp automatically fix the local time?
4. Check the BIOS. Has its clock changed?
5. Run XP. What does it know? The new time? The new zone?
6. If you need to update the XP time and zone, that should also change the BIOS. How does that affect your Stretch setup?
|
Back to top
|
|
 |
dancytron
Joined: 18 Jul 2012 Posts: 1555
|
Posted: Wed 01 Nov 2017, 18:51 Post subject:
|
|
Do you want me to use your application or the default "setup timezone?"
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Wed 01 Nov 2017, 18:58 Post subject:
|
|
It shouldn't matter. All the timezone setup does (I think) is make a link from /etc/localtime into /usr/share/zoneinfo.
|
Back to top
|
|
 |
AndresC2
Joined: 08 Jul 2017 Posts: 76
|
Posted: Wed 01 Nov 2017, 19:11 Post subject:
|
|
Hi All
this work for me.
in debian stretch script I add.
#Setup Timezone
echo "America/Caracas" > /etc/timezone
build debian stretch iso.
and now not change my bios time anymore.
|
Back to top
|
|
 |
|
Page 52 of 104 [1549 Posts] |
Goto page: Previous 1, 2, 3, ..., 50, 51, 52, 53, 54, ..., 102, 103, 104 Next |
|
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 You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|