New issue
Advanced search Search tips

Issue 854096 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Android: <input type="time"> displays 12h version regardless of system time setting

Reported by ericshan...@gmail.com, Jun 19 2018

Issue description

Device name: Sharp Aquos SH-06F

From "Settings > About Chrome"
Application version: 67.0.3396.87
Operating system: Android version 4.4.2, Kernel version 3.4.0

URLs (if applicable): Any webpage using <input-type="time">

Steps to reproduce:
(1) Set system time to 24 hour clock
(2) Embed <input type="time" value="00:00:00"> into a webpage's source code
(3) load the webpage

Expected result:
The <input type="time"> element should read "00:00:00"

Actual result:
the <input type="time"> reads "12:

Issue:
Not only is it slightly annoying in that it ignores the system's time setting, it renders <input type="time"> unusable for any sort of timer, countdown, or time-based alarm, as a countdown with 30 seconds left will actually read "12:00:30 AM" instead of "00:00:30"

Proposed resolution:
Either pull Chrome's time setting (12/24h clock) from the system as per the Windows version, or add a user-accessible setting for 12/24h clock

Attachment:
Screenshot from my device showing 24h system clock and 12h <input type="time">, and a screenshot of my PC with 24h system clock and 24h <input type="time"> (from the same website)
 
screenshot-pc.png
52.8 KB View Download
Screenshot_2018-06-19-16-44-44.png
100 KB View Download
Labels: Needs-triage-Mobile
Cc: pnangunoori@chromium.org
Components: Blink>Forms>Time Blink>Input
Labels: Triaged-Mobile Needs-Feedback
ericshannonjones@ -- Thanks for reporting this issue. Could you please share any sample URL or HTML file to verify this issue from TE's end. So that we can reproduce the issue and triage accordingly.

Thanks in advance!
<!DOCTYPE html><html><body><input type="time" value="00:00:00" step="1"></body></html>

HTML file attached. Thanks for looking into it!
proof.html
86 bytes View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 20 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

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

Comment 5 by tkent@chromium.org, Jun 21 2018

Components: -Blink>Input
Labels: -Needs-triage-Mobile Type-Bug
Status: Available (was: Unconfirmed)
Summary: Android: <input type="time"> displays 12h version regardless of system time setting (was: <input type="time"> displays 12h version regardless of system time setting)
Similar issue for CrOS: 152120

Sign in to add a comment