Last login date/time doesn't respect locale

Bug #105986 reported by Bruce Cowan
2
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: base-files

When I log in to a tty, a message saying "Last login: Thu Apr 12 21:56:38 2007" is displayed. I have the computer set to the en_GB locale, the date/time format should be "Thu 12 Apr 2007 21:56:38".

Revision history for this message
glandux (glandux) wrote :

First, this concerns login package because this display is produced by login program.
As far as I know, the date of last login displayed don't consider the locale. So, this seems to be normal.

Revision history for this message
Colin Watson (cjwatson) wrote :

The PAM lastlog module just uses ctime() at present, which has a hardcoded time format.

Changed in base-files:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

The current version of pam_lastlog uses strftime+gettext, so it should be possible now to provide an en_GB translation that sets the desired format.

Steve Langasek (vorlon)
Changed in pam (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Wolter HV (wolterh) wrote :

Why wasn't this bug moved to affect the login program?

affects: pam (Ubuntu) → shadow (Ubuntu)
Changed in shadow (Ubuntu):
status: Triaged → New
Revision history for this message
Steve Langasek (vorlon) wrote :

Because the log clearly shows the problem is in the pam module. Please don't mess with triaged bugs.

affects: shadow (Ubuntu) → pam (Ubuntu)
Changed in pam (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.