Rodomi pranešimai su žymėmis time. Rodyti visus pranešimus
Rodomi pranešimai su žymėmis time. Rodyti visus pranešimus

2023 m. liepos 10 d., pirmadienis

linux time and date

$ systemctl status systemd-timesyncd.service

$ timedatectl set-time "2000-01-01 11:11:11"
$ timedatectl set-ntp true
$ timedatectl set-timezone UTC
$ timedatectl timesync-status
$ timedatectl show-timesync --all

NTP servers conf file
/etc/systemd/timesyncd.conf

 

 

More to read:

https://linuxreviews.org/HOWTO_ensure_your_clock_is_accurate_and_showing_the_correct_time_using_the_Network_Time_Protocol

https://man.linuxreviews.org/man5/timesyncd.conf.5.html

2021 m. spalio 26 d., antradienis

Neteisingai rodė laiką sysloge ir spausdinant date

$ set-timezone Europe/Vilnius
$ sudo service rsyslog restart

2020 m. balandžio 22 d., trečiadienis

Windows 10 update time script

You can add this in Task Scheduler and make it run automatically

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "Start-Process cmd -ArgumentList '/s,/c,C:\Windows\System32\net.exe start w32time & w32tm /resync"' -Verb runAs"