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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>133731</bug_id>
          
          <creation_ts>2014-06-11 02:37:54 -0700</creation_ts>
          <short_desc>Forced date format for input of type=date</short_desc>
          <delta_ts>2018-12-11 17:22:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dtrunk90</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>me</cc>
    
    <cc>m.kurz+webkitbugs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1014702</commentid>
    <comment_count>0</comment_count>
    <who name="">dtrunk90</who>
    <bug_when>2014-06-11 02:37:54 -0700</bug_when>
    <thetext>The date value interpreted from input[type=date] in the HTTP Request such as GET / POST will be formatted as yyyy-mm-dd.
Why?

It&apos;s a task of the server-side how a textfield should be interpreted.
No other browser manipulates any input data before sending to the server.

Example:
Germany - Common date format is dd.mm.yyyy
When setting up a hibernate validator model (Java) which represents the form and adding @DateTimeFormat(pattern=&quot;dd.MM.yyyy&quot;) to the field I&apos;m facing an error as Chrome manipulates the value.
So I have the choice now: Manipulate the value on all other browsers as well and set the pattern to yyyy-MM-dd or make a workaround for Chrome to stop manipulating that value.
As the value shouldn&apos;t be manipulated I&apos;d prefer the second one.

What&apos;s the idea behind that manipulation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1487078</commentid>
    <comment_count>1</comment_count>
    <who name="Jayden Seric">me</who>
    <bug_when>2018-12-11 17:22:00 -0800</bug_when>
    <thetext>This is not a bug, by spec the value for input[type=&apos;date&apos;] must conform to the ISO 8601 standard for computer-readable date and time formats, see https://html.spec.whatwg.org/multipage/forms.html#input-author-notes. The standard format allows things such as the min and max attributes and autocompletion to work.

If you want to submit arbitrary text you should use input[type=&apos;text&apos;].

This issue can be closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>