summaryrefslogtreecommitdiff
path: root/aports/busybox/0024-tests-musl-doesn-t-seem-to-recognize-UTC0-as-a-timez.patch
blob: de2cb3648e1f41c58a05be7aa643cc181e97da60 (plain)
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
32
33
34
35
36
37
38
39
40
From 707d69bf1e7a5f2e29309239d599933350cbfd59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
Date: Wed, 4 Jan 2023 08:04:07 +0100
Subject: [PATCH] tests: musl doesn't seem to recognize UTC0 as a timezone
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

UTC works though.

TODO: Figure out if musl /should/ regonize UTC0.
---
 testsuite/date/date-timezone | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testsuite/date/date-timezone b/testsuite/date/date-timezone
index 8628aa1d7..720ce4f26 100644
--- a/testsuite/date/date-timezone
+++ b/testsuite/date/date-timezone
@@ -1,17 +1,17 @@
 # FEATURE: CONFIG_FEATURE_TIMEZONE
 
 # 'Z' is UTC
-dt=$(TZ=UTC0 busybox date -d '1999-1-2 3:4:5Z')
+dt=$(TZ=UTC busybox date -d '1999-1-2 3:4:5Z')
 dt=$(echo "$dt" | cut -b1-19)
 test x"$dt" = x"Sat Jan  2 03:04:05"
 
 # '+0600' is six hours ahead of UTC
-dt=$(TZ=UTC0 busybox date -d '1999-1-2 3:4:5 +0600')
+dt=$(TZ=UTC busybox date -d '1999-1-2 3:4:5 +0600')
 dt=$(echo "$dt" | cut -b1-19)
 test x"$dt" = x"Fri Jan  1 21:04:05"
 
 # '-0600' is six hours behind UTC
-dt=$(TZ=UTC0 busybox date -d '1999-1-2 3:4:5 -0600')
+dt=$(TZ=UTC busybox date -d '1999-1-2 3:4:5 -0600')
 dt=$(echo "$dt" | cut -b1-19)
 test x"$dt" = x"Sat Jan  2 09:04:05"