New issue
Advanced search Search tips

Issue 883593 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 3
Type: Feature



Sign in to add a comment

Dates don't line up in local directory listings

Reported by jidanni@gmail.com, Sep 13

Issue description

UserAgent: 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:
 
Labels: Needs-Triage-M69
Components: -Blink Internals>Network
Labels: -Type-Bug Type-Feature
Status: Untriaged (was: Unconfirmed)
Components: UI
Labels: -Pri-2 OS-Android OS-Chrome OS-Fuchsia OS-iOS OS-Mac OS-Windows Pri-3
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.
Labels: -OS-iOS
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.
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
Status: WontFix (was: Untriaged)
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).
Снимок экрана 2018-10-02 в 19.28.31.png
254 KB View Download

Comment 8 Deleted

Yes the bug doesn't appear in the Russian locale.
**But it does in some other locales**.

Sign in to add a comment