diff --git a/src/build/gitinfo.bat b/src/build/gitinfo.bat
index 9d9e8d62eb26d3fb457f43acf58d48bf1d3622a4..99f05efaf2bea295d84f38fe8bfeceda35cff6fc 100644
--- a/src/build/gitinfo.bat
+++ b/src/build/gitinfo.bat
@@ -1,5 +1,5 @@
 @git log -1 HEAD --format="#define GIT_HASH \"%%h\"" > git_hash.h
-@git log -1 HEAD --format="#define GIT_DATE \"%%cd\"" "--date=format-local:%%b %%e %%Y %%H:%%M" >> git_hash.h
+@git log -1 HEAD --format="#define GIT_DATE \"%%cd\"" "--date=format-local:%%b %%d %%Y %%H:%%M" >> git_hash.h
 @echo #define GIT_BRANCH ^"| tr -d "\r\n" > git_branch.h
 @git rev-parse --abbrev-ref HEAD | tr -d "\n" >> git_branch.h
 @echo ^" >> git_branch.h
diff --git a/src/sbbs3/targets.mk b/src/sbbs3/targets.mk
index 777d5450dc8ad3789f438710a508d369000701de..0dc2782d17a58892cc706ffe79463e8c72cc9d82 100644
--- a/src/sbbs3/targets.mk
+++ b/src/sbbs3/targets.mk
@@ -158,7 +158,7 @@ FORCE:
 ifneq ($(GIT), NO)
 git_hash.h: FORCE ../../.git
 	$(QUIET)git log -1 HEAD --format="#define GIT_HASH \"%h\"" > $@.tmp
-	$(QUIET)git log -1 HEAD --format="#define GIT_DATE \"%cd\"" '--date=format-local:%b %e %Y %H:%M' >> $@.tmp
+	$(QUIET)git log -1 HEAD --format="#define GIT_DATE \"%cd\"" '--date=format-local:%b %d %Y %H:%M' >> $@.tmp
 	$(QUIET)test -e $@ && diff $@.tmp $@ || cp $@.tmp $@
 	$(QUIET)rm -f $@.tmp