Dates don't line up in local directory listings
Reported by
jidanni@gmail.com,
Sep 13
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36 Example URL: Steps to reproduce the problem: Dates don't line up in local directory listings. In fact the only thing that lines up about them is the M of AM and PM! What is the expected behavior? What went wrong? Firefox doesn't have this problem. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 69.0.3497.81 Channel: n/a OS Version: Flash Version:
,
Sep 14
,
Sep 15
I believe that format is generated by: https://chromium.googlesource.com/chromium/src/+/master/net/base/dir_header.html However not sure who would triage the UI side of the feature request.
,
Sep 17
,
Sep 19
Reporter: when you want dates to align, are you taking about adding 0 padding like this: 07/17/15, 04:20:54 PM 11/19/18, 10:59:34 AM Or would you just like to have the column left aligned rather than right aligned (so at least the first number of the dates would be aligned). Firefox uses 0 padding to align dates, but I'm not sure how it interacts with different locales. We just take the exact string ICU provides us: https://cs.chromium.org/chromium/src/base/i18n/time_formatting.cc?rcl=8f6326484a8c1ad74f61585eb0bfc7b1126ce2fa&l=144 I skimmed through the ICU docs and I didn't see any options to do a padding technique.
,
Sep 19
Yes, 0 padding seems like the right thing to do! By the way, some people aren't used to AM/PM: https://bugs.chromium.org/p/chromium/issues/detail?id=883595
,
Oct 2
The date format depends on language settings set in the system. For example, setting system language to 'Russian' displays 24 hour clock and pads the date with 0 on the left (see screenshot).
,
Oct 3
Yes the bug doesn't appear in the Russian locale. **But it does in some other locales**. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by krajshree@chromium.org
, Sep 14