Page 1 of 1

[Solved] Date and Time setting not working

Posted: 09 Apr 2020, 09:51
by meet
Hello.

I am running Porteus 5.0 rc1 with KDE.

When I set my time zone in the Date and Time setting and select the automatically update time setting, and click APPLY, it throws me error "Unable to authenticate/execute the action: 4,"

I am entering correct root password. So that's not the issue.

How to fix this?

Solution:
1. The System Setting > Date and time on Porteus won't allow to set the time zones. There's a bug in it and it doesn't work on Porteus 4 and 5 both.
2. Time zone can be set using Cheat code "timezone=Area/Location" in the Porteus.cfg file in Porteus folder.
However, only entering the cheatcode will not work. In my case, even after entering the cheat code, it still showed incorrect time and date.
Then I changed it using "Porteus Settings Centre". Change the time zone here, and when it asks to save changes to a module, click yes. Now the date and time will be correct across sessions / boots.
3. Set the time and date manually. Ignore the time zone, whatever is selected. This will work along with the changes save.dat file.

Date and Time setting not working

Posted: 09 Apr 2020, 18:30
by francois
You can set timezone with the cheatcode http://www.porteus.org/tutorials/26-gen ... -them.html
timezone=region/zone

You have to put it in the porteus.cfg file.

You will find a lot of other tweaks for you porteus system.

Date and Time setting not working

Posted: 11 Apr 2020, 03:40
by meet
francois wrote:
09 Apr 2020, 18:30
You can set timezone with the cheatcode http://www.porteus.org/tutorials/26-gen ... -them.html
timezone=region/zone
Hey thanks.
Adding this cheat-code didn't work. The time was not shown correctly as per the selected time zone.

Then I ignored the time zone and just set a time and date manually, which stays across the sessions so that's great.

[Solved] Date and Time setting not working

Posted: 11 Apr 2020, 23:17
by francois
Your computer's clock could be late. Glad that you found the solution. :)

[Solved] Date and Time setting not working

Posted: 12 Apr 2020, 05:30
by Blaze
How about like this?

Code: Select all

su
toor
cp /etc/localtime{,.bak} && rm /etc/localtime && ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime && ntpdate pool.ntp.org && hwclock -lw

[Solved] Date and Time setting not working

Posted: 12 Apr 2020, 16:12
by meet
francois wrote:
11 Apr 2020, 23:17
Your computer's clock could be late. Glad that you found the solution. :)
Well no. The date and time in Windows works properly as per the set time zone.
Yes, adding the time zone module file through Porteus Settings Manager centre worked. Only adding cheat code didn't work.
Blaze wrote:
12 Apr 2020, 05:30
How about like this?

Code: Select all

su
toor
cp /etc/localtime{,.bak} && rm /etc/localtime && ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime && ntpdate pool.ntp.org && hwclock -lw
Hey thanks for the reply but I am not trying this now. The time's shown correct now and I don't wanna try anything on it.
But it may solve someone else's problem.

[Solved] Date and Time setting not working

Posted: 28 Aug 2022, 15:00
by hope
Blaze wrote:
12 Apr 2020, 05:30
How about like this?

Hi. Thanks to blaze's solution but I had to slightly modified its solution since only that version worked for me :

Code: Select all

cp /etc/localtime{,.bck} && rm /etc/localtime && ln -sf /usr/share/zoneinfo/Europe/IStanbul /etc/localtime && hwclock -uw
The only change is hwclock -uw which saves the local(i.e acc.to UTC timing system) time to system time and change hardware clock according to it. As a result, you will get correct local time for your system. *HERE*