1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

date: added the width for the month field to the date format.

Since glibc-2.6 Polish locale uses Roman numbers for months in dates.
VIII is 4 bytes long, so %4b. Without this directory listings look ugly.
It adds one space per line in the C locale. IMHO it is not a big problem.
This commit is contained in:
Witold Filipczyk 2007-06-18 20:01:08 +02:00 committed by Witold Filipczyk
parent 0031fb4e0d
commit ea4c09efd4

View File

@ -464,9 +464,9 @@ stat_date(struct string *string, struct stat *stp)
if (current_time > when + 6L * 30L * 24L * 60L * 60L
|| current_time < when - 60L * 60L)
fmt = "%b %e %Y";
fmt = "%4b %e %Y";
else
fmt = "%b %e %H:%M";
fmt = "%4b %e %H:%M";
add_date_to_string(string, fmt, &when);
add_char_to_string(string, ' ');