<?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>138020</bug_id>
          
          <creation_ts>2014-10-23 14:04:38 -0700</creation_ts>
          <short_desc>A bunch of JS dates fail after r175078</short_desc>
          <delta_ts>2014-10-24 13:27:50 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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 name="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mark.lam</cc>
    
    <cc>roger_fong</cc>
    
    <cc>sun.shin</cc>
    
    <cc>xingri</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1043829</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2014-10-23 14:04:38 -0700</bug_when>
    <thetext>Tests failing:
	ecma/Date/15.9.3.1-1.js
	ecma/Date/15.9.3.1-2.js
	ecma/Date/15.9.3.1-3.js
	ecma/Date/15.9.3.1-4.js
	ecma/Date/15.9.3.1-5.js
	ecma/Date/15.9.3.2-1.js
	ecma/Date/15.9.3.2-2.js
	ecma/Date/15.9.3.2-3.js
	ecma/Date/15.9.3.2-4.js
	ecma/Date/15.9.3.2-5.js
	ecma/Date/15.9.4.2-1.js
	ecma/Date/15.9.5.26-1.js
	ecma/Date/15.9.5.27-1.js
	ecma/Date/15.9.5.28-1.js
	ecma/Date/15.9.5.30-1.js

Skipping them here:
http://trac.webkit.org/changeset/175142</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043830</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-10-23 14:10:04 -0700</bug_when>
    <thetext>See also failures here: https://build.webkit.org/results/Apple%20Win%207%20Debug%20(Tests)/r175080%20(63295)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043831</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-10-23 14:11:53 -0700</bug_when>
    <thetext>From https://build.webkit.org/results/Apple%20Win%207%20Debug%20(Tests)/r175080%20(63295)/results.html:
js/date-parse-comments-test.html
js/date-parse-test.html
js/date-parse-test.html
js/dom/callback-function-with-handle-event.html
js/dom/date-big-setmonth.html

Not sure if these are new to this patch, but should probably take a look into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043832</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-10-23 14:23:11 -0700</bug_when>
    <thetext>Investigation notes: the following Date files have Windows specific implementations:

    WTF/wtf/DateMath.cpp
    WTF/wtf/GregorianDateTime.cpp
    JavaScriptCore/runtime/DateConversion.cpp
    JavaScriptCore/runtime/DatePrototype.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043884</commentid>
    <comment_count>4</comment_count>
      <attachid>240378</attachid>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2014-10-23 16:57:34 -0700</bug_when>
    <thetext>Created attachment 240378
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043886</commentid>
    <comment_count>5</comment_count>
      <attachid>240378</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-10-23 17:01:57 -0700</bug_when>
    <thetext>Comment on attachment 240378
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=240378&amp;action=review

&gt; Source/WTF/ChangeLog:10
&gt; +        Do not change input time offset in case of Windows operating system.

This describes what you did but not why you did it.  Can you please explain the reasoning behind this?  What’s different about Windows such that this is needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043889</commentid>
    <comment_count>6</comment_count>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2014-10-23 17:27:45 -0700</bug_when>
    <thetext>With a preliminary analysis, Widows returns default time milliseconds is based on UTC milliseconds unlike other OSs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043895</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-10-23 17:43:37 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; With a preliminary analysis, Widows returns default time milliseconds is
&gt; based on UTC milliseconds unlike other OSs.

That’s nice to know, but it’s still not enough to tell us that this fix is correct and conclusive.  Let’s get more data on why Windows is behaving this way.

Also, if the timeType passed into calculateLocalTimeOffset() says that the incoming ms is in local time, then we would expect it to be in local time.  If this is not the case on Windows, then something upstream is not obeying the contract.  Hence, this is the wrong place to apply this fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043898</commentid>
    <comment_count>8</comment_count>
      <attachid>240378</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-10-23 17:45:22 -0700</bug_when>
    <thetext>Comment on attachment 240378
Patch

Per my previous comment, this is the wrong fix.  If Windows is passing in a UTC time value, then the fix must be somewhere up stream.  It should either pass in a timeType of UTCTime, or ms should be in local time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043908</commentid>
    <comment_count>9</comment_count>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2014-10-23 18:46:16 -0700</bug_when>
    <thetext>I will keep working on it and update it as soon as I will find a root cause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044038</commentid>
    <comment_count>10</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2014-10-24 13:09:15 -0700</bug_when>
    <thetext>If it helps, I also found some layout tests failing as a result:
  js/date-parse-comments-test.html [ Failure ]
  js/date-parse-test.html [ Failure ]
  js/date-set-to-nan.html [ Failure ]
  js/dom/date-big-setmonth.html [ Failure ]

I&apos;ll be skipping these as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044049</commentid>
    <comment_count>11</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2014-10-24 13:27:50 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; If it helps, I also found some layout tests failing as a result:
&gt;   js/date-parse-comments-test.html [ Failure ]
&gt;   js/date-parse-test.html [ Failure ]
&gt;   js/date-set-to-nan.html [ Failure ]
&gt;   js/dom/date-big-setmonth.html [ Failure ]
&gt; 
&gt; I&apos;ll be skipping these as well.

Skipped in a general windows gardening patch here:
http://trac.webkit.org/changeset/175176</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>240378</attachid>
            <date>2014-10-23 16:57:34 -0700</date>
            <delta_ts>2014-10-23 17:45:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-138020-20141023165741.patch</filename>
            <type>text/plain</type>
            <size>1448</size>
            <attacher name="Byungseon(Sun) Shin">sun.shin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTc1MTUyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL0NoYW5n
ZUxvZyBiL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCmluZGV4IDVmYWE0MjVjNzEwNGQxZjc0OTYyMzBh
NTM0ZTFkMGM1N2EwM2U3NDQuLjkzMzM1YzM3ZmRkNzJhMTkzNDkyMjBiZDU4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KyBiL1NvdXJjZS9XVEYvd3RmL0RhdGVNYXRo
LmNwcApAQCAtNDc4LDggKzQ3OCwxMCBAQCBMb2NhbFRpbWVPZmZzZXQgY2FsY3VsYXRlTG9jYWxU
aW1lT2Zmc2V0KGRvdWJsZSBtcywgVGltZVR5cGUgaW5wdXRUaW1lVHlwZSkKICNlbHNlCiAgICAg
ZG91YmxlIGxvY2FsVG9VVENUaW1lT2Zmc2V0ID0gY2FsY3VsYXRlVVRDT2Zmc2V0KCk7CiAjZW5k
aWYKKyNpZiAhT1MoV0lORE9XUykKICAgICBpZiAoaW5wdXRUaW1lVHlwZSA9PSBMb2NhbFRpbWUp
CiAgICAgICAgIG1zIC09IGxvY2FsVG9VVENUaW1lT2Zmc2V0OworI2VuZGlmCiAKICAgICAvLyBP
biBNYWMgT1MgWCwgdGhlIGNhbGwgdG8gbG9jYWx0aW1lIChzZWUgY2FsY3VsYXRlRFNUT2Zmc2V0
KSB3aWxsIHJldHVybiBoaXN0b3JpY2FsbHkgYWNjdXJhdGUKICAgICAvLyBEU1QgaW5mb3JtYXRp
b24gKGUuZy4gTmV3IFplYWxhbmQgZGlkIG5vdCBoYXZlIERTVCBmcm9tIDE5NDYgdG8gMTk3NCkg
aG93ZXZlciB0aGUgSmF2YVNjcmlwdAo=
</data>
<flag name="review"
          id="265163"
          type_id="1"
          status="-"
          setter="mark.lam"
    />
          </attachment>
      

    </bug>

</bugzilla>