From 57f627445f506522368637bebc8e33081c3837c3 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 22 Feb 2008 09:46:25 +0000
Subject: [PATCH] use xpTimeZone_local() to get the current timezone. <sigh>

---
 src/xpdev/unixtime.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/xpdev/unixtime.c b/src/xpdev/unixtime.c
index c6afbf12fe..bca5780955 100644
--- a/src/xpdev/unixtime.c
+++ b/src/xpdev/unixtime.c
@@ -10,14 +10,7 @@
 #include <ctype.h>
 #define USE_SNPRINTF	/* we don't need safe_snprintf for this project */
 #include "genwrap.h"
-
-#if !defined(__unix__)
-	#define TIMEZONE	_timezone
-	#define DAYLIGHT	_daylight
-#else
-	#define TIMEZONE	timezone
-	#define DAYLIGHT	daylight
-#endif
+#include "datewrap.h"
 
 /****************************************************************************/
 /* Converts a date string in format MM/DD/YY into unix time format			*/
@@ -87,8 +80,7 @@ int main(int argc, char **argv)
 	}
 	tzset();
 
-	printf("timezone=%d\n", TIMEZONE);
-	printf("daylight=%d\n", DAYLIGHT);
+	printf("Current timezone: %d\n", xpTimeZone_local());
 	printf("\n");
 
 	if(argc>argn && argv[argn][2]=='/') {
-- 
GitLab