<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11449</bug_id>
          
          <creation_ts>2010-12-01 13:57:45 +0000</creation_ts>
          <short_desc>The current specification and implementation of &lt;input type=&quot;date&quot;&gt; using yyyy-mm-dd format will be unacceptable to many of our corporate customers. Also, only allowing times in &lt;input type=&quot;date&quot;&gt; to be in 24 hour clock will cause serious delays in our b</short_desc>
          <delta_ts>2011-08-04 05:03:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>dbaron</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>kornel</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>shelleyp</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42957</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-12-01 13:57:45 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/spec/Overview.html
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#top

Comment:
The current specification and implementation of &lt;input type=&quot;date&quot;&gt; using
yyyy-mm-dd format will be unacceptable to many of our corporate customers.

Also, only allowing times in &lt;input type=&quot;date&quot;&gt; to be in 24 hour clock will
cause serious delays in our being able to implement HTML 5.  On many occasions
we have had Large USA Corporates and Government departments insisting on the
use of 12 hour clock due to the lack of penetration of 24 hour clock into the
USA.

Both date and time inputs should have the option to use a variety of
international formats (not just the browser locale) otherwise, many developers
will have no alternative but to continue using an &lt;input type=&apos;text&apos;&gt;, a
javascript based calendar popup and javascript-based validation.

Posted from: 78.33.209.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42958</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2010-12-01 14:47:20 +0000</bug_when>
    <thetext>Surely this is a presentation issue which should be addressed using CSS? Maybe a date-format property which takes a formatting string of some kind?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42960</commentid>
    <comment_count>2</comment_count>
    <who name="Kornel Lesinski">kornel</who>
    <bug_when>2010-12-01 16:25:17 +0000</bug_when>
    <thetext>It&apos;s not the first time I see someone confused about format of date UI and internal date representation.

I think the spec needs to have big flashing banner that says &quot;This is format submitted to the server. Browsers are not required to *display* it like that, and can use localized date format in the UI.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42961</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2010-12-01 18:26:33 +0000</bug_when>
    <thetext>As Kornel says, the specified format is the format that the *data submitted to the server* must be in.  It has absolutely nothing to do with the actual display of the date or time; browsers are free to display them to the user in whatever format they wish.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42963</commentid>
    <comment_count>4</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2010-12-01 18:50:08 +0000</bug_when>
    <thetext>The original request was for the web developers to be able to determine the date and time format, not have it be controlled by the browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42964</commentid>
    <comment_count>5</comment_count>
    <who name="Kornel Lesinski">kornel</who>
    <bug_when>2010-12-01 19:16:39 +0000</bug_when>
    <thetext>(In reply to comment #4)

Sorry if I misunderstood.

In that case, why is it important to override implementations?

I&apos;m assuming that browsers will read preferred date format from system&apos;s locale, so Large USA Corporates and Government departments would get date displayed in mm/dd/yyyy format and 12-hour time automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42966</commentid>
    <comment_count>6</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2010-12-01 20:04:47 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; 
&gt; Sorry if I misunderstood.
&gt; 
&gt; In that case, why is it important to override implementations?
&gt; 
&gt; I&apos;m assuming that browsers will read preferred date format from system&apos;s
&gt; locale, so Large USA Corporates and Government departments would get date
&gt; displayed in mm/dd/yyyy format and 12-hour time automatically.

I&apos;m not the original filer. Unfortunately, it&apos;s one of those from the inline comments, which means the person is now disconnected from what is happening with their request. I hope they follow up on the discussion.

I believe, though, that what you&apos;re saying is not what the original filer was asking. They were asking for the ability to specify something other than have the browser default to system locale. At least, that&apos;s how I read:

&quot;Both date and time inputs should have the option to use a variety of
international formats (not just the browser locale)...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42969</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-12-01 20:14:02 +0000</bug_when>
    <thetext>Shelley is right -- I think the contributor was confused about display vs. internal formats, but he&apos;s still asking for the ability to choose specific output formats other than the browser locale.  This is probably a good feature to have, but as Philip says in comment 1, it&apos;s probably a CSS thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42972</commentid>
    <comment_count>8</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2010-12-01 21:36:06 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Shelley is right -- I think the contributor was confused about display vs.
&gt; internal formats, but he&apos;s still asking for the ability to choose specific
&gt; output formats other than the browser locale.  This is probably a good feature
&gt; to have, but as Philip says in comment 1, it&apos;s probably a CSS thing.

I don&apos;t believe that can be reliably inferred from the OP.  The OP had the standard confusion between displayed value and submitted value.  The request for more control over the displayed value is sufficiently vague that it can easily be interpreted to be satisfied by the existing spec text.

However, if we assume that the OP *was* asking for direct author control over the display of dates and times, then, well, that&apos;s a horrible idea.  The entire *point* of the datetime inputs is to offer the display in whatever fashion the user most desires.  Giving control over this to the author defeats that and is directly and explicitly bad for i18n.  If I were European and was used to seeing dates as &quot;DD/MM/YYYY&quot;, I would *not* want an ignorant American developer setting the displayed value to use the format &quot;MM-DD-YYYY&quot;, *especially* if I&apos;m used to other sites leaving the displayed value to the default so the browser respects my locale conventions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42998</commentid>
    <comment_count>9</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-12-02 17:52:38 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; However, if we assume that the OP *was* asking for direct author control over
&gt; the display of dates and times, then, well, that&apos;s a horrible idea.  The entire
&gt; *point* of the datetime inputs is to offer the display in whatever fashion the
&gt; user most desires.  Giving control over this to the author defeats that and is
&gt; directly and explicitly bad for i18n.  If I were European and was used to
&gt; seeing dates as &quot;DD/MM/YYYY&quot;, I would *not* want an ignorant American developer
&gt; setting the displayed value to use the format &quot;MM-DD-YYYY&quot;, *especially* if I&apos;m
&gt; used to other sites leaving the displayed value to the default so the browser
&gt; respects my locale conventions.

I think consistency within a site is much more expected and valuable than consistency between sites, for things that visually appear to be part of the site.  More generally, lack of styleability is a clear deficiency of the new HTML5 inputs compared to existing solutions, and we might need to give authors a lot of control before the inputs will be widely used.

However, I don&apos;t think there&apos;s any way to say for sure what&apos;s needed until browsers have basic implementation down.  In all likelihood, there will be some companies or governments that demand some particular formatting, but it will probably be the same formatting that their browser uses by default, and they won&apos;t realize people in other locales will see things differently, so they won&apos;t care.

I&apos;d reclose the bug as LATER, but I&apos;m not actually sure people other than the editor should really be resolving bugs that aren&apos;t clearly garbage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43002</commentid>
    <comment_count>10</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2010-12-02 19:13:02 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; However, if we assume that the OP *was* asking for direct author control over
&gt; &gt; the display of dates and times, then, well, that&apos;s a horrible idea.  The entire
&gt; &gt; *point* of the datetime inputs is to offer the display in whatever fashion the
&gt; &gt; user most desires.  Giving control over this to the author defeats that and is
&gt; &gt; directly and explicitly bad for i18n.  If I were European and was used to
&gt; &gt; seeing dates as &quot;DD/MM/YYYY&quot;, I would *not* want an ignorant American developer
&gt; &gt; setting the displayed value to use the format &quot;MM-DD-YYYY&quot;, *especially* if I&apos;m
&gt; &gt; used to other sites leaving the displayed value to the default so the browser
&gt; &gt; respects my locale conventions.
&gt; 
&gt; I think consistency within a site is much more expected and valuable than
&gt; consistency between sites, for things that visually appear to be part of the
&gt; site.  More generally, lack of styleability is a clear deficiency of the new
&gt; HTML5 inputs compared to existing solutions, and we might need to give authors
&gt; a lot of control before the inputs will be widely used.
&gt; 
&gt; However, I don&apos;t think there&apos;s any way to say for sure what&apos;s needed until
&gt; browsers have basic implementation down.  In all likelihood, there will be some
&gt; companies or governments that demand some particular formatting, but it will
&gt; probably be the same formatting that their browser uses by default, and they
&gt; won&apos;t realize people in other locales will see things differently, so they
&gt; won&apos;t care.
&gt; 
&gt; I&apos;d reclose the bug as LATER, but I&apos;m not actually sure people other than the
&gt; editor should really be resolving bugs that aren&apos;t clearly garbage.


I agree that it is difficult to determine author and developer acceptance of the form controls until we have wider implementation. We still do not have a date implementation in the two browsers people use most, Firefox and IE, and the implementation in the other browsers is still undergoing change.

A LATER status would enable us to re-visit this issue once there is wider implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43003</commentid>
    <comment_count>11</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2010-12-02 19:16:43 +0000</bug_when>
    <thetext>One quick PS

Of course, at a later time, it is going to be difficult to get any changes into the spec, or implementations. In addition, there is a very real possibility that developers and web site authors will just reject the HTML5 form elements (or many of them) in favor of existing libraries, making acceptance of even changed specs and implementation that much less guaranteed. 

In the end, if the people don&apos;t use the HTML5 functionality, because it&apos;s too restricting or too inflexible, it doesn&apos;t matter who implements what.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44063</commentid>
    <comment_count>12</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-01-11 00:13:56 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5761.
Check-in comment: Date/time form controls: Add notes saying that the UI doesn&apos;t have to match the submission format. Some day we&apos;ll add graphics to make it more obvious, but for now I don&apos;t want to bias implementations.
http://html5.org/tools/web-apps-tracker?from=5760&amp;to=5761</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44064</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-01-11 00:20:57 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: see above.
Rationale: I&apos;ve tried to clarify the spec as suggested in comment 2, but beyond that I don&apos;t understand exactly what is being requested here.

Original poster: please feel free to reopen the bug as described in the &quot;EDITOR&apos;S RESPONSE&quot; paragraph above.

Others: please file new bugs if you have specific ideas or suggestions stemming from the discussion above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52642</commentid>
    <comment_count>14</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:03:21 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>