[status-time] Support NOT changing timezone
authorStiletto <blasux@blasux.ru>
Sat, 17 Aug 2019 15:25:10 +0400
changeset 17 5b6294779007
parent 16 e08bdbec1843
child 18 85165bbd4ebb
[status-time] Support NOT changing timezone
status-time/time.c
--- a/status-time/time.c	Sat Aug 17 15:23:15 2019 +0400
+++ b/status-time/time.c	Sat Aug 17 15:25:10 2019 +0400
@@ -22,7 +22,9 @@
     setlocale(LC_TIME, LOCALE);
 #endif
 
+#ifdef TIMEZONE
     setenv("TZ", TIMEZONE, 1);
+#endif
 
     while (1) {
         bzero(buf, sizeof(buf));