summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/libunix.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 0859bc18f6..cd84a7a282 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -66,6 +66,8 @@ static struct termios game_term;
#include <signal.h>
#endif
+#include <time.h>
+
// Its best if curses comes at the end (name conflicts with Solaris). -- bwr
#ifndef CURSES_INCLUDE_FILE
#ifndef _XOPEN_SOURCE_EXTENDED
@@ -422,6 +424,12 @@ void unixcurses_startup( void )
{
termio_init();
+#ifdef DGAMELAUNCH
+ // Force timezone to UTC.
+ setenv("TZ", "", 1);
+ tzset();
+#endif
+
#ifdef USE_UNIX_SIGNALS
#ifdef SIGQUIT
signal(SIGQUIT, SIG_IGN);