[Pkg-shadow-devel] [pkg-shadow-Bugs][315345] passwd -S displays unintuitive date format

pkg-shadow-bugs at alioth.debian.org pkg-shadow-bugs at alioth.debian.org
Sun Mar 27 19:29:41 UTC 2016


pkg-shadow-Bugs item #315345, was opened at 2016-03-27 19:29 by Kim Vandry
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=315345&group_id=30580

Status: Open
Priority: 3
Submitted By: Kim Vandry (vandry-guest)
Assigned to: Nobody (None)
Summary: passwd -S displays unintuitive date format 
Category: None
Group: None
Resolution: None


Initial Comment:
At shadow-4.2/src/passwd.c line 459, date_to_str uses an unintuitive date format that is surprising and difficult to interpret because it is neither little-endian (day-month-year) nor big-endian (year-month-day).

In strftime(), "%m/%d/%Y" should be replaced with either "%x" (locale-appropriate date format) or, more simply, hardcoded to the intuitive and standard ISO 8601 format "%Y-%m-%d".

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=315345&group_id=30580



More information about the Pkg-shadow-devel mailing list