status-time/time.c
changeset 10 442bed4a072e
parent 1 3e9290bf7249
child 17 5b6294779007
--- a/status-time/time.c	Thu Oct 23 20:49:34 2014 +0400
+++ b/status-time/time.c	Fri Oct 24 14:13:46 2014 +0400
@@ -8,6 +8,9 @@
 #include <time.h>
 
 #include "config.h"
+#ifdef LOCALE
+#include <locale.h>
+#endif
 
 int
 main(void)
@@ -15,6 +18,9 @@
     char buf[129];
     time_t tim;
     struct tm *timtm;
+#ifdef LOCALE
+    setlocale(LC_TIME, LOCALE);
+#endif
 
     setenv("TZ", TIMEZONE, 1);