Commit 93bf0480 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '1ae6cb7d'

* commit '1ae6cb7d':
  dashenc: fix ISO8601 UTC parsing
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 068d9188 1ae6cb7d
...@@ -433,7 +433,7 @@ static void format_date_now(char *buf, int size) ...@@ -433,7 +433,7 @@ static void format_date_now(char *buf, int size)
struct tm *ptm, tmbuf; struct tm *ptm, tmbuf;
ptm = gmtime_r(&t, &tmbuf); ptm = gmtime_r(&t, &tmbuf);
if (ptm) { if (ptm) {
if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%S", ptm)) if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%SZ", ptm))
buf[0] = '\0'; buf[0] = '\0';
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment