From 471aa95c341943e893d2e939c6fddccf407c0d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 17 Sep 2017 19:18:56 +0200 Subject: [PATCH] add timezone to the about page --- CMakeLists.txt | 2 ++ user/cgi_main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3c159d..ea9d6ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,8 @@ add_definitions( -DICACHE_RODATA_ATTR= -DFLAG_GZIP=2 -DADMIN_PASSWORD="asdf" + -DGIT_HASH_BACKEND="asdf" + -DGIT_HASH_FRONTEND="asdf" -DGIT_HASH="blabla" -DDEBUG_HEAP=1 -DDEBUG_MALLOC=1 diff --git a/user/cgi_main.c b/user/cgi_main.c index bb8bbfb..377666c 100644 --- a/user/cgi_main.c +++ b/user/cgi_main.c @@ -54,7 +54,7 @@ tplAbout(HttpdConnData *connData, char *token, void **arg) tplSend(connData, __DATE__, -1); } else if (streq(token, "time")) { - tplSend(connData, __TIME__, -1); + tplSend(connData, __TIME__" "__TIMEZONE__, -1); } else if (streq(token, "vers_httpd")) { tplSend(connData, httpdGetVersion(), -1);