PINE64
Setting Time and Date - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: Setting Time and Date (/showthread.php?tid=9106)



Setting Time and Date - noeman5 - 02-10-2020

Has anyone had any luck changing the time and date?  It seems to be stuck on GMT.  I can get to the setting that allows me to enter my location, it suggests my city, state, country but when I click on it, nothing happens.  If I try to manually set the time, it ignores the reset.  I've tried a couple of command line entries in terminal, but even those haven't helped.  Being connected to wi-fi doesn't seem to help, maybe once I get a carrier and connect it to their network it will force the change.  Anyone know?


RE: Setting Time and Date - drpi - 02-10-2020

Date and time are automatically set when running Ubuntu Touch or Sailfish OS. I did not tried with another OS.


RE: Setting Time and Date - rico - 02-10-2020

I had to configure manually on ubports.
And not by select the good time zone in the UI

But
dpkg-reconfigure tzdata
did it


RE: Setting Time and Date - noeman5 - 02-13-2020

(02-10-2020, 02:47 AM)rico Wrote: I had to configure manually on ubports.
And not by select the good time zone in the UI

But
dpkg-reconfigure tzdata
did it

Hmm that didn't work either. I get a box on the screen that talks about subsequent boxes narrowing down my geographic location, but clicking on Ok does nothing.


RE: Setting Time and Date - soyrunner - 02-13-2020

(02-13-2020, 06:56 AM)noeman5 Wrote:
(02-10-2020, 02:47 AM)rico Wrote: I had to configure manually on ubports.
And not by select the good time zone in the UI

But
dpkg-reconfigure tzdata
did it

Hmm that didn't work either. I get a box on the screen that talks about subsequent boxes narrowing down my geographic location, but clicking on Ok does nothing.

I got time and date working by ssh and setting the locale and hwclock.  The GUI time date setting was just too touchy.  Also, when the manual set was correct, it just wouldn't set.  When I got the locale and hwclock set after ssh'ing in, I went back to the GUI, checked automatic setting, then rebooted and the correct time was there.  To get root priv. I had to de-set screen lock, then I could sudo su on the ssh session then I could set a root password.  Then ssh in I'd sudo su, get to enter the root password, then have root privileges.  I may have dpkg-reconfigured unity8 as well, not sure.  But early on the hwclock --show would have both the local time and UTC time correct but booting would show the GUI time off by 5 hours.


RE: Setting Time and Date - noeman5 - 02-13-2020

(02-13-2020, 11:19 AM)soyrunner Wrote:
(02-13-2020, 06:56 AM)noeman5 Wrote:
(02-10-2020, 02:47 AM)rico Wrote: I had to configure manually on ubports.
And not by select the good time zone in the UI

But
dpkg-reconfigure tzdata
did it

Hmm that didn't work either. I get a box on the screen that talks about subsequent boxes narrowing down my geographic location, but clicking on Ok does nothing.

I got time and date working by ssh and setting the locale and hwclock.  The GUI time date setting was just too touchy.  Also, when the manual set was correct, it just wouldn't set.  When I got the locale and hwclock set after ssh'ing in, I went back to the GUI, checked automatic setting, then rebooted and the correct time was there.  To get root priv. I had to de-set screen lock, then I could sudo su on the ssh session then I could set a root password.  Then ssh in I'd sudo su, get to enter the root password, then have root privileges.  I may have dpkg-reconfigured unity8 as well, not sure.  But early on the hwclock --show would have both the local time and UTC time correct but booting would show the GUI time off by 5 hours.
Thanks soyrunner, but I just downloaded and flashed the latest image and the time and date settings seem to work.  They must have found and fixed the bug.


RE: Setting Time and Date - magdesign - 04-17-2021

on PostmarketOS:


Code:
sudo setup-timezone
Then you can type '?' to see the available timezones and finally set your timezone.