File: js-src-tests-Avoid-using-legacy-MST-time-zone-name.patch

package info (click to toggle)
mozjs128 128.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,132,528 kB
  • sloc: javascript: 2,181,430; cpp: 1,371,420; python: 776,651; ansic: 641,398; xml: 117,736; sh: 17,537; asm: 13,468; makefile: 11,191; yacc: 4,504; perl: 2,221; lex: 1,414; ruby: 1,032; exp: 756; java: 185; sql: 66; sed: 18
file content (31 lines) | stat: -rw-r--r-- 1,426 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Simon McVittie <smcv@debian.org>
Date: Wed, 30 Oct 2024 09:41:58 +0000
Subject: js/src/tests: Avoid using legacy MST time zone name

The MST time zone name only exists in tzdata for compatibility with
Unix System V, and was moved to a legacy section in tzdata commit
a0b09c0 "Mark CET, CST6CDT etc. as obsolescent". On recent
Debian and Ubuntu systems, the time zones affected by this change
are only available if the additional tzdata-legacy package is installed.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1928015
Bug-Debian: https://bugs.debian.org/1086298
Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1928015
---
 js/src/tests/non262/Date/parse-dashed-numeric-date.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/src/tests/non262/Date/parse-dashed-numeric-date.js b/js/src/tests/non262/Date/parse-dashed-numeric-date.js
index b6a0d1e..0f3acb0 100644
--- a/js/src/tests/non262/Date/parse-dashed-numeric-date.js
+++ b/js/src/tests/non262/Date/parse-dashed-numeric-date.js
@@ -4,7 +4,7 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-inTimeZone("MST", () => {
+inTimeZone("Etc/GMT+7", () => {
   // The upper limit is from the TimeClip algorithm:
   // https://tc39.es/ecma262/#sec-timeclip
   // https://tc39.es/ecma262/#sec-utc-t