How do I set the date and time on the phone?
#1
There seems to be no app to do it under phosh. 

I tried date from the terminal but I got EPERM. Date said: 'date: can't set date: Operation not permitted.

OK, sudo worked and then I was able to set the date, I think
#2
I've been trying it using sudo. Seems to set the date and time for the session, but then even if I use
Code:
hwclock --systohc
it just reverts to putting me somewhere up in Kamchatka on a Kazakhstan timezone. Or something. Big Grin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OS: Mobian Bookworm, Phosh. Pinephone Braveheart from 2020-02-11
#3
(02-14-2020, 02:49 PM)quixote Wrote: I've been trying it using sudo. Seems to set the date and time for the session, but then even if I use
Code:
hwclock --systohc
it just reverts to putting me somewhere up in Kamchatka on a Kazakhstan timezone. Or something. Big Grin

After I manually set the time from a terminal command line:
sudo date '2020-03-03 20:17'

I changed the time zone to mine by replacing the symlink for /etc/localtime to change it from
/usr/share/zoneinfo/Europe/Amsterdam to my time zone, EST:
sudo rm /etc/localtime
sudo ln -s /usr/share/zoneinfo/EST /etc/localtime

That survived a reboot.

HTH


Possibly Related Threads…
Thread Author Replies Views Last Post
  phone won't boot from emmc with sdcard inserted ssilvi 3 4,248 06-06-2021, 02:47 AM
Last Post: ssilvi
  [PostmarketOS with Plasma Mobile] Angelfish adblock + wpa supplicant time out Egolep 0 2,236 03-23-2021, 10:25 AM
Last Post: Egolep
  No USB connection - phone not seen! --- 24 29,115 12-14-2020, 08:24 PM
Last Post: ---
  Phone arrived: Stupid Questions begin. Setting up OpenVPN? OLOV 3 5,236 10-06-2020, 05:10 PM
Last Post: OLOV
  Cant shut phone down Cree 2 4,222 09-27-2020, 10:37 AM
Last Post: Cree
  Phone not detecting telco access points Pinoideae 6 8,231 09-23-2020, 06:04 AM
Last Post: Pinoideae
Information pmOS CE phone cannot boot from known good SD singpolyma 2 4,401 09-05-2020, 06:36 PM
Last Post: juanjoseor
  unable to boot the phone with PM OS after battery has completely discharged nieral 1 3,357 08-24-2020, 06:34 AM
Last Post: PureTryOut
  PMOS Community Edition phone,shipping OS bcnaz 1 3,269 08-22-2020, 03:30 AM
Last Post: PureTryOut

Forum Jump:


Users browsing this thread: 1 Guest(s)