aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-repository-root.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-repository-root.cxx')
-rw-r--r--mod/mod-repository-root.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/mod-repository-root.cxx b/mod/mod-repository-root.cxx
index cb0b82f..c661b91 100644
--- a/mod/mod-repository-root.cxx
+++ b/mod/mod-repository-root.cxx
@@ -4,6 +4,8 @@
#include <mod/mod-repository-root.hxx>
+#include <time.h> // tzset()
+
#include <sstream>
#include <web/module.hxx>
@@ -193,6 +195,11 @@ namespace brep
if (options_->root ().empty ())
options_->root (dir_path ("/"));
+
+ // To use libbutl timestamp printing functions later on (specifically in
+ // sub-modules, while handling requests).
+ //
+ tzset ();
}
bool repository_root::