Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6997

Troubleshooting • Why doesn't who command correctly display the time?

$
0
0
Bit of an odd one, this.
I have a Pi3B r1.2 running bookworm lite 32-bit (I use it to compile for Zero/Zero W targets).
Just run update/upgrade cycle and rebooted, followed by autoremove to get rid of older kernels.

Everything seems fine, I have en_GB (system default) and en_US locales built, timezone set to Europe/London.
Date and time agrees with other machines on the network.

Just one small oddity, which is irritating me _ever_ so slightly.
This is run headless, so I boot it to console but with no autologin. After booting, and logging in (from two other machines) via ssh, I see this:

Code:

pi       pts/0        128363309618537936 (192.9.200.1)pi       pts/1        7334122713411517217 (192.9.200.101)
I am puzzled on two counts.

Firstly, the time between logins is less than five minutes, so I would expect to see a difference of less than 300 if it is reporting seconds and not converting to a human-readable form.

Secondly, it isn't converting to a human-readable form, although every other pi I am using does.

I suspect that the first one may be down to the system clock not having updated when I logged in the first time, but it had by the second login.
As to the second issue, I have no clue as to why, unless there is some issue with a corrupted file somewhere.

I have already run badblocks on the SD (on a separate machine), which says there are no errors reading (and dmesg on that machine didn't flag up any issues either). Similarly, dmesg on this machine doesn't show up anything weird, nor does journalctl.

Any clues as to what is wrong or how to fix it, short of reimaging the SD card?

Statistics: Posted by SteveSpencer — Tue Jul 08, 2025 12:57 pm — Replies 0 — Views 17



Viewing all articles
Browse latest Browse all 6997

Trending Articles