summaryrefslogtreecommitdiff
path: root/tools/gen-script-for-lang.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-01 23:56:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-01 23:57:42 -0400
commit5b21b68299ceb33d42a8b76669ceeefe5c099825 (patch)
tree6536afc496d269e472859eeaf4cd4c85c42c8cde /tools/gen-script-for-lang.c
parent5bd13c75423d2cea1fc09b333cfd7fb49437dca6 (diff)
downloadpango-5b21b68299ceb33d42a8b76669ceeefe5c099825.tar.gz
Fix a C99 strftime incantation
This is problematic when building pango as subproject of gtk on the win32 ci.
Diffstat (limited to 'tools/gen-script-for-lang.c')
-rw-r--r--tools/gen-script-for-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index 2f439a4e..b3238f85 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -253,7 +253,7 @@ int main (void)
max_script_len = MAX (max_script_len, j);
}
- if ((t = time(NULL), tmp = localtime (&t)) && strftime(date_buf, sizeof(date_buf), "%F", tmp))
+ if ((t = time(NULL), tmp = localtime (&t)) && strftime(date_buf, sizeof(date_buf), "%Y-%m-%d", tmp))
date_str = date_buf;
fc_version = FcGetVersion ();