logo elektroda
logo elektroda
X
logo elektroda

Raspberry Pi Time Setting: Retaining Date after Reboot with Pixtend RTC & Disconnected from Network

ienecode 10254 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17129644
    ienecode
    Level 21  
    Hello,

    Problem setting time in RPI.
    If I connect to the internet and update the system, then RPI is the current date.
    When I change the date with the command: sudo date -s .... then the date changes but until the next restart ...
    How can I keep the date after rebooting?
    I say when RPi disconnected from the network. I'm using RTC with a Pixtend base.
  • ADVERTISEMENT
  • #2 17129766
    ircmaniak
    Level 14  
    1. sudo raspi-config
    2. Internationalization options
    3. Change Time Zone
    4. Select geographical area
    5. Select city or region.
    6. Reboot your pi.
  • ADVERTISEMENT
  • #3 17130447
    ienecode
    Level 21  
    I have already done so.
  • ADVERTISEMENT
  • #4 17132443
    ircmaniak
    Level 14  
    One of the most frequently mentioned disadvantages of the Raspberry Pi set is the lack of RTC hardware that would allow correct reproduction of system time in the event that no other synchronization sources (such as NTP server) are currently available.

    Read here you have the solution => link
  • #5 17143127
    ienecode
    Level 21  
    Unfortunately, you cannot disable NTP, throws out warnings:

    warning: current stop runlevel (s) (2 3 4 5) of script `ntp 'overrides LSB defaults (empty).
ADVERTISEMENT