diff --git a/patches/node/.patches b/patches/node/.patches index 685f465f0bbc..6726b1c1331f 100644 --- a/patches/node/.patches +++ b/patches/node/.patches @@ -24,3 +24,4 @@ repl_fix_crash_when_sharedarraybuffer_disabled.patch fix_readbarrier_undefined_symbol_error_on_woa_arm64.patch chore_fix_-wimplicit-fallthrough.patch fix_event_with_invalid_timestamp_in_trace_log.patch +test_fix_test-datetime-change-notify_after_daylight_change.patch diff --git a/patches/node/test_fix_test-datetime-change-notify_after_daylight_change.patch b/patches/node/test_fix_test-datetime-change-notify_after_daylight_change.patch new file mode 100644 index 000000000000..6842d7694eb1 --- /dev/null +++ b/patches/node/test_fix_test-datetime-change-notify_after_daylight_change.patch @@ -0,0 +1,39 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Piotr Rybak +Date: Sun, 31 Oct 2021 17:58:09 +0900 +Subject: test: fix test-datetime-change-notify after daylight change +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Add standard timezone name for Dublin without daylight saving + +PR-URL: https://github.com/nodejs/node/pull/40684 +Reviewed-By: Michaël Zasso +Reviewed-By: Tobias Nießen +Reviewed-By: Voltrex +(cherry picked from commit 747ef34fb0c9c1f2924ab1b79ea000c87e67a8eb) + +diff --git a/test/parallel/test-datetime-change-notify.js b/test/parallel/test-datetime-change-notify.js +index 9cd6d7abfd898ac6781b04422362a6b459b7dc2c..01843511907077857be22c9bc7e7f8568fc677d1 100644 +--- a/test/parallel/test-datetime-change-notify.js ++++ b/test/parallel/test-datetime-change-notify.js +@@ -18,15 +18,15 @@ const cases = [ + }, + { + timeZone: 'America/New_York', +- expected: /Eastern (Standard|Daylight) Time/, ++ expected: /Eastern (?:Standard|Daylight) Time/, + }, + { + timeZone: 'America/Los_Angeles', +- expected: /Pacific (Standard|Daylight) Time/, ++ expected: /Pacific (?:Standard|Daylight) Time/, + }, + { + timeZone: 'Europe/Dublin', +- expected: /Irish/, ++ expected: /Irish Standard Time|Greenwich Mean Time/, + }, + ]; +