This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28044 - Bug with "linked" datetime-local inputs min value
Summary: Bug with "linked" datetime-local inputs min value
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 editorial
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 09:58 UTC by patrick.boguet
Modified: 2016-04-21 17:45 UTC (History)
6 users (show)

See Also:


Attachments

Description patrick.boguet 2015-02-18 09:58:35 UTC
Hi,

I have a problem with two datetime-local inputs which are "linked" (that means my first input sets a min date value for the second one).
I use the Chrome mobile browser on an Android tablet for a web application in HTML5.

I choose a first date : 2015/02/18 10:15:00 from the first input (format 2015/02/18T10:15:00).
Then, I define this date for the min date in my second input (with document.getElementById('mySecondInput').min = firstDate)

When I want to choose my second time, the picker time starts at 11:15.
So, it's impossible to set a time before 11:15 (example 10:45).
It seems that the min value is used for the hours and not for the minutes.

Is that a standard behavior for the datetime-local input ? 
Why not start the min value with firstDate + 1 minute instead of firstDate + 1 hour ?
Comment 1 Philippe Le Hegaret 2015-07-08 13:43:25 UTC
datetime and datetime-local indicates:
[[
The step attribute is expressed in seconds. The step scale factor is 1000 (which converts the seconds to milliseconds, as used in the other algorithms). The default step is 60 seconds.
]]

so it seems to me that the implementation is incorrect. Did you check with other implementations to see which step they take?
Comment 2 Arron Eicholz 2016-04-21 17:45:51 UTC
HTML5.1 Bugzilla Bug Triage: this is an implementation bug.

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!