New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 675791 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Time duration formatting is wrong when using numerical format

Project Member Reported by chengx@chromium.org, Dec 20 2016

Issue description

Chrome Version: All
OS: All

Chrome uses TimeDelta class to represent a duration of time. When UX shows this duration of time, it can use 4 different formats. An example is that if the time duration is 15 hours, 42 minutes and 30 seconds, UX will show:

1) 15 hours, 42 minutes, 30 seconds, if format is DURATION_WIDTH_WIDE;
2) 15 hr, 42 min, 30 sec, if format is DURATION_WIDTH_SHORT;
3) 15h 42m 30s, if format is DURATION_WIDTH_NARROW;
4) 15:42:30, if format is DURATION_WIDTH_NUMERIC.

However, when it is above 24 hours, say the time duration is 25 hours, 42 minutes and 30 seconds, and the format is DURATION_WIDTH_NUMERIC, then:

What is the expected result?
25:42:30

What happens instead?
1:42:30

This is found if I change "15 hours" to "25 hours" in TimeFormattingTest.TimeDurationFormat. Basically the hour value is mod by 24. 



 

Comment 1 by chengx@chromium.org, Dec 20 2016

Labels: OS-All

Comment 2 by chengx@chromium.org, Dec 20 2016

Components: UI>OSIntegration
Components: -UI>OSIntegration Internals>PlatformIntegration
Deprecating UI>OSIntegration in favor of the more generic Internals>PlatformIntegration

Comment 4 by chengx@chromium.org, Jan 13 2017

Status: Available (was: Assigned)

Comment 5 by chengx@chromium.org, Jan 13 2017

Owner: ----

Comment 6 by chengx@chromium.org, Jan 13 2017

Cc: chengx@chromium.org
Cc: tdander...@chromium.org
Note: I am suspecting this as the root cause of  issue 677043 .
Project Member

Comment 8 by sheriffbot@chromium.org, Feb 16 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment