<?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>106720</bug_id>
          
          <creation_ts>2013-01-11 16:37:05 -0800</creation_ts>
          <short_desc>new Date() after Feb 28 2034 returns an incorrect date</short_desc>
          <delta_ts>2015-08-31 10:45:35 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>130123</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Benjamin Juang">ben.juang+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>lquinn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>805743</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Juang">ben.juang+webkit</who>
    <bug_when>2013-01-11 16:37:05 -0800</bug_when>
    <thetext>Steps to Reproduce:
In javascript or using the Web Inspector Console:
1. Try creating a new Date() object with a date string that is at or after March 1, 2034.

Actual Results:
Date object will be off by one day.

Expecte Result:
Date object that matches the day you put in.

Console example:
&gt; new Date(&quot;Feb 28 2034&quot;) // This is correct.
Tue Feb 28 2034 00:00:00 GMT-0800 (PST)
&gt; new Date(&quot;Feb 29 2034&quot;) // This is correct.
Wed Mar 01 2034 00:00:00 GMT-0800 (PST)
&gt; new Date(&quot;Mar 1 2034&quot;) // This is wrong.  And any dates after March 1, 2034 will be off by a full day.
Tue Feb 28 2034 00:00:00 GMT-0800 (PST)
&gt; new Date(&quot;Jan 01 2035&quot;)
Sun Dec 31 2034 00:00:00 GMT-0800 (PST)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1122212</commentid>
    <comment_count>1</comment_count>
    <who name="Liam Quinn">lquinn</who>
    <bug_when>2015-08-31 10:45:35 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>