summaryrefslogtreecommitdiff
path: root/libc/debian/patches/etc-timezone.patch
blob: 13c3c5ec2cb5dbffe3d68629680e3d633b57c6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Descriptiob: get TZ from /etc/timezone (like in Debian)
Index: b/usr/src/lib/libc/port/gen/localtime.c
===================================================================
--- a/usr/src/lib/libc/port/gen/localtime.c
+++ b/usr/src/lib/libc/port/gen/localtime.c
@@ -120,8 +120,8 @@
 /* JAN_01_1902 cast to (int) - negative number of seconds from 1970 */
 #define	JAN_01_1902		(int)0x8017E880
 #define	LEN_TZDIR		(sizeof (TZDIR) - 1)
-#define	TIMEZONE		"/etc/default/init"
-#define	TZSTRING		"TZ="
+#define	TIMEZONE		"/etc/timezone"
+#define	TZSTRING		""
 #define	HASHTABLE		31
 
 #define	LEAPS_THRU_END_OF(y)	((y) / 4 - (y) / 100 + (y) / 400)