In a new notebook, I configured Ubuntu to automatically sync time. Timezone is set to UTC +8. There is no problem with date when the notebook is connected to Internet.
But when I started the notebook in air gap (offline) mode, I noticed date time displayed by Ubuntu is incorrect. I can confirm that both date
and date -u
returned incorrect date. No TZ set in terminal. The date in UEFI menu is still the correct one. I believe that date
is not using date from notebook clock. How date
resolve date in this case?
I tried to set time in UEFI menu to 07/09/2016 21:04:xx
and executed the following commands:
$ date
Ahd Jul 10 05:04:25 MYT 2016
$ date -u
Sab Jul 9 21:04:26 UTC 2016
$ sudo hwclock
Ahad 10 Jul 2016 05:04:35 MYT .057058 seconds
$ sudo hwclock --localtime
Sabtu 09 Jul 2016 09:04:39 MYT .813741 seconds
The date I set in UEFI now become the result for date -u
while it should be the result for date
. Is this has something to do with EUFI time service?