<?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>287283</bug_id>
          
          <creation_ts>2025-02-07 12:31:47 -0800</creation_ts>
          <short_desc>Test fail on Mac outside US/Pacific time zone</short_desc>
          <delta_ts>2025-06-20 09:32:34 -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>WebKit Local Build</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>227983</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Johannes Odland">johannes.odland</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>gsnedders</cc>
    
    <cc>rik</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2092935</commentid>
    <comment_count>0</comment_count>
    <who name="Johannes Odland">johannes.odland</who>
    <bug_when>2025-02-07 12:31:47 -0800</bug_when>
    <thetext>Many layout tests fail on Mac configured without US/Pacific time zone:

Regressions: Unexpected text-only failures (31)
  accessibility/datetime/input-datetime-local-label-value.html [ Failure ]
  accessibility/datetime/input-time-label-value.html [ Failure ]
  http/tests/inspector/network/har/har-page-aggressive-gc.html [ Failure ]
  http/tests/inspector/network/har/har-page.html [ Failure ]
  imported/w3c/web-platform-tests/IndexedDB/structured-clone.any.html?41-60 [ Failure ]
  imported/w3c/web-platform-tests/IndexedDB/structured-clone.any.html?61-80 [ Failure ]
  imported/w3c/web-platform-tests/IndexedDB/structured-clone.any.worker.html?41-60 [ Failure ]
  imported/w3c/web-platform-tests/IndexedDB/structured-clone.any.worker.html?61-80 [ Failure ]
  inspector/model/remote-object/date.html [ Failure ]
  inspector/unit-tests/cookie.html [ Failure ]
  js/date-timeClip-large-values.html [ Failure ]
  storage/indexeddb/modern/date-basic-private.html [ Failure ]
  storage/indexeddb/modern/date-basic.html [ Failure ]
  storage/indexeddb/modern/get-keyrange-private.html [ Failure ]
  storage/indexeddb/modern/get-keyrange.html [ Failure ]
  storage/indexeddb/modern/idbobjectstore-delete-1-private.html [ Failure ]
  storage/indexeddb/modern/idbobjectstore-delete-1.html [ Failure ]


WebKit/WebKitBuild/Release/layout-test-results/accessibility/datetime/input-datetime-local-label-value-actual.txt
@@ -2,22 +2,22 @@
 
 datetime1:
 PASS: datetime.title === &apos;AXTitle: Meeting time:&apos;
-AXValue: Oct 21, 2024 at 3:45 PM
+AXValue: 21 Oct 2024 at 15:45
 AXDateValue: 2024-10-21 15:45:59 +0000
 
 datetime2:
 PASS: datetime.title === &apos;AXTitle: Meeting time:&apos;
-AXValue: Oct 21, 2024 at 3:45 PM
+AXValue: 21 Oct 2024 at 15:45
 AXDateValue: 2024-10-21 15:45:59 +0000
 
 datetime3:
 PASS: datetime.title === &apos;AXTitle: Meeting time:&apos;
-AXValue: Oct 21, 2024 at 3:45 PM
+AXValue: 21 Oct 2024 at 15:45
 AXDateValue: 2024-10-21 15:45:59 +0000
 
 datetime4:
 PASS: datetime.title === &apos;AXTitle: &apos;
-AXValue: Oct 21, 2024 at 3:45 PM
+AXValue: 21 Oct 2024 at 15:45
 AXDateValue: 2024-10-21 15:45:59 +0000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092981</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-02-07 15:04:11 -0800</bug_when>
    <thetext>(In reply to Johannes Odland from comment #0)
&gt;   http/tests/inspector/network/har/har-page-aggressive-gc.html [ Failure ]
&gt;   http/tests/inspector/network/har/har-page.html [ Failure ]

These are: https://bugs.webkit.org/show_bug.cgi?id=227983

Other ports already try and workaround a bunch of this, by just always using America/Los_Angeles (or equivalent):

```
Tools/Scripts/run-javascriptcore-tests
644:$ENV{TZ}=&quot;US/Pacific&quot;; # Some tests fail if the time zone is not set to US/Pacific (&lt;https://webkit.org/b/136363&gt;)

Tools/Scripts/run-jsc-stress-tests
3120:# Some tests fail if the time zone is not set to US/Pacific
3123:ENV[&quot;TZ&quot;] = &quot;US/Pacific&quot;; 

Tools/Scripts/webkitpy/port/base.py
775:        # FIXME: Some tests fail if the time zone is not set to US/Pacific (&lt;https://webkit.org/b/186612&gt;)
776:        clean_env[&apos;TZ&apos;] = &apos;US/Pacific&apos;

Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp
1040:    g_assert_cmpstr(WebViewTest::javascriptResultToCString(value), ==, &quot;America/Los_Angeles&quot;);

Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.cpp
140:    g_setenv(&quot;TZ&quot;, &quot;America/Los_Angeles&quot;, TRUE);

Tools/flatpak/flatpakutils.py
973:                &quot;TZ&quot;: &quot;America/Los_Angeles&quot;,
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092982</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-02-07 15:04:34 -0800</bug_when>
    <thetext>&lt;rdar://problem/144413932&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124863</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-06-20 09:32:34 -0700</bug_when>
    <thetext>(In reply to Sam Sneddon [:gsnedders] from comment #1)
&gt; Other ports already try and workaround a bunch of this, by just always using
&gt; America/Los_Angeles (or equivalent):

https://bugs.webkit.org/show_bug.cgi?id=294726 just added more here</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>