different times for last boot between last and uptime -s

Colin Law clanlaw at gmail.com
Tue Dec 6 07:11:55 UTC 2022


On Mon, 5 Dec 2022, 22:50 Lentes, Bernd, <bernd.lentes at helmholtz-muenchen.de>
wrote:

>
> ----- On 5 Dec, 2022, at 18:56,  ubuntu at howorth.org.uk wrote:
>
> > What does a plain uptime show?
>
> The same difference:
> root at crispor-server:~# date
> Mon 05 Dec 2022 11:41:58 PM CET
> root at crispor-server:~#
> root at crispor-server:~# uptime -s
> 2022-12-02 21:37:18
> root at crispor-server:~#
> root at crispor-server:~# uptime
>  23:42:17 up 3 days,  2:04,  1 user,  load average: 0.00, 0.09, 0.15
>
> Btw: the correct boot time is 21:37, so uptime is correct but not last.
>

Do you dual boot with windows? I believe that Windows sets the RTC to local
time, Linux sets it to UTC.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20221206/5c4ba401/attachment.html>


More information about the ubuntu-users mailing list