<?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>147098</bug_id>
          
          <creation_ts>2015-07-19 15:33:35 -0700</creation_ts>
          <short_desc>Date.parse should not accept second values of &quot;60&quot;</short_desc>
          <delta_ts>2022-04-02 15:10:33 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://ecma-international.org/ecma-262/6.0/#sec-date-time-string-format</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>ES5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jordan Harband">ljharb</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>fpizlo</cc>
    
    <cc>mark.lam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1110532</commentid>
    <comment_count>0</comment_count>
    <who name="Jordan Harband">ljharb</who>
    <bug_when>2015-07-19 15:33:35 -0700</bug_when>
    <thetext>`Date.parse(&apos;2012-12-31T23:59:60.000Z&apos;)` should return NaN, and instead returns `Date.parse(&apos;2013-01-01T00:00:00.000Z&apos;)`
`Date.parse(&apos;2015-06-30T23:59:60.000Z&apos;)` should return NaN, and instead returns `Date.parse(&apos;2015-07-01T00:00:00.000Z&apos;)`

Note that the second example is an actual leap second, and it doesn&apos;t even work properly.

The spec requires that only seconds from 0 to 59 are supported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1857628</commentid>
    <comment_count>1</comment_count>
    <who name="Jordan Harband">ljharb</who>
    <bug_when>2022-04-02 15:10:15 -0700</bug_when>
    <thetext>In latest Safari, both of these return NaN, so it must have been fixed at some point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>