aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-11-13 18:23:25 +0100
committerToni Uhlig <matzeton@googlemail.com>2021-11-13 18:23:25 +0100
commitc2ef613b99d01e742127d894756e49f42b1f264d (patch)
tree9262558b7210f78e0eb2b72c5c0c8d24a6aceaff
parentcb3a3ba618b33247d1be61d7aa6e9f3de628b876 (diff)
std::strftime format
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--src/content/blog/Blog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/blog/Blog.cpp b/src/content/blog/Blog.cpp
index 52951de..4b34caf 100644
--- a/src/content/blog/Blog.cpp
+++ b/src/content/blog/Blog.cpp
@@ -216,7 +216,7 @@ void Blog::FillRenderData(RenderData & re, BlogEntry const & be)
re["author"] = be->author;
{
char tmstr[64];
- if (std::strftime(tmstr, sizeof(tmstr), "%c", std::localtime(&be->createDate)) > 0)
+ if (std::strftime(tmstr, sizeof(tmstr), "%d.%m.%Y %H:%M", std::localtime(&be->createDate)) > 0)
{
re["createDate"] = tmstr;
}
@@ -227,7 +227,7 @@ void Blog::FillRenderData(RenderData & re, BlogEntry const & be)
}
{
char tmstr[64];
- if (std::strftime(tmstr, sizeof(tmstr), "%c", std::localtime(&be->publishDate)) > 0)
+ if (std::strftime(tmstr, sizeof(tmstr), "%d.%m.%Y %H:%M", std::localtime(&be->publishDate)) > 0)
{
re["publishDate"] = tmstr;
}