<?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>231545</bug_id>
          
          <creation_ts>2021-10-11 17:00:19 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 15): Intl.DateTimeFormat returns 2 digit years when year is &apos;numeric&apos; and month is &apos;2-digit&apos; and day is &apos;2-digit&apos;</short_desc>
          <delta_ts>2021-10-12 14:28:31 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Other</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230827</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=230827</see_also>
          <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 name="Matt Carroll">matt.carroll139</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1802891</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Carroll">matt.carroll139</who>
    <bug_when>2021-10-11 17:00:19 -0700</bug_when>
    <thetext>This test case passes:

```
const dtf = new Intl.DateTimeFormat(&apos;en-AU&apos;, { timeZone: &apos;Australia/Melbourne&apos;, year: &apos;numeric&apos; });
const date = new Date(2021, 9, 2);
const parts = dtf.formatToParts(date);
const year = parts.find(part =&gt; part.type === &apos;year&apos;)
shouldBe(year.value, &quot;2021&quot;)
```


This test case will fail:

```
const dtf = new Intl.DateTimeFormat(&apos;en-AU&apos;, { timeZone: &apos;Australia/Melbourne&apos;, year: &apos;numeric&apos;, month: &apos;2-digit&apos;, day: &apos;2-digit&apos; });
const date = new Date(2021, 9, 2);
const parts = dtf.formatToParts(date);
const year = parts.find(part =&gt; part.type === &apos;year&apos;)
shouldBe(year.value, &quot;2021&quot;) // actual is &quot;21&quot;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1803388</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-10-12 14:28:31 -0700</bug_when>
    <thetext>Thanks! This is dupe of bug 230827.

*** This bug has been marked as a duplicate of bug 230827 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>