fix missing leading zeros in date tooltip

Sat, 01 Feb 2025 15:42:48 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 01 Feb 2025 15:42:48 +0100
changeset 15
ef0f2497843e
parent 14
f0ae064c5b9c
child 16
730a5638c4ad

fix missing leading zeros in date tooltip

src/html.cpp file | annotate | diff | comparison | revisions
--- a/src/html.cpp	Sat Feb 01 15:06:48 2025 +0100
+++ b/src/html.cpp	Sat Feb 01 15:42:48 2025 +0100
@@ -208,7 +208,7 @@
         color_class = "commit-spam";
     }
     indent();
-    printf("<td class=\"%s\" title=\"%s, %d-%u-%u: %u commits\"></td>\n",
+    printf("<td class=\"%s\" title=\"%s, %d-%02u-%02u: %u commits\"></td>\n",
         color_class,
         weekdays[weekday(ymd).iso_encoding() - 1],
         static_cast<int>(ymd.year()),

mercurial