Merge commit '1ae6cb7d6e'
* commit '1ae6cb7d6e':
dashenc: fix ISO8601 UTC parsing
Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
93bf0480c2
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ static void format_date_now(char *buf, int size)
|
|||
struct tm *ptm, tmbuf;
|
||||
ptm = gmtime_r(&t, &tmbuf);
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue