different times for last boot between last and uptime -s

ubuntu at howorth.org.uk ubuntu at howorth.org.uk
Mon Dec 5 17:56:49 UTC 2022


littlergirl at gmail.com wrote:
> Hey there,
> 
> Lentes, Bernd wrote:
> 
> >uptime -s says:
> >root at crispor-server:/var/log/atop# uptime -s
> >2022-12-02 21:37:18
> >
> >last says:
> >reboot   system boot  5.4.0-91-generic Fri Dec  2 22:37   still
> >running
> >
> >The current date and time is correct, timezone is Berlin/Europe.
> >
> >This difference makes debugging more complicated.
> >Does anyone know the reason ?  
> 
> It could be that one of them recognizes, and adjusts for, Daylight
> Saving Time and the other one doesn't.

Except neither the boot time nor the time now are in DST?

My m/c was booted during DST and does show a one hour difference, FWIW.

What does a plain uptime show?



More information about the ubuntu-users mailing list