diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 83ca82630b0a9e425f6da75520176cd188a9a65f..a62ec6c2345fe2e9f816181e2a2b7bdd6f413d26 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -37,24 +37,28 @@ is_master() {
 }
 
 
+log_date() {
+	date +%T.%3N
+}
+
 # Functions for coloring echo commands
 log_debug() {
-  echo -e "(`date +%T`) \033[1;32m${@}\033[0m"
+  echo -e "$(log_date) \033[1;32m${@}\033[0m"
 }
 
 
 log_info() {
-  echo -e "(`date +%T`) \033[1;34m${@}\033[0m"
+  echo -e "$(log_date) \033[1;34m${@}\033[0m"
 }
 
 
 log_warn() {
-  echo -e "(`date +%T`) \033[1;35mWarning: ${@}\033[0m" >&2
+  echo -e "$(log_date) \033[1;35mWarning: ${@}\033[0m" >&2
 }
 
 
 log_error() {
-  echo -e "(`date +%T`) \033[1;31mError: ${@}\033[0m" >&2
+  echo -e "$(log_date) \033[1;31mError: ${@}\033[0m" >&2
 }
 
 
@@ -249,7 +253,7 @@ dav_recursive_mkdir() {
 
     # make sure the current subpath folder is created
     # a 405 exit code is returned when the folder already exists
-    dav_mkdir "$DOCSERVER/$current_subpath" 405
+    dav_mkdir "$current_subpath" 405
     log_info "Directory ${current_subpath} (now) exists."
   done
 }