diff options
author | Sven Neumann <sven@svenfoo.org> | 2020-02-11 11:24:16 +0100 |
---|---|---|
committer | Bryce Harrington <bryce@bryceharrington.org> | 2020-11-27 18:18:03 -0800 |
commit | c43ff33c43821c555756cc8281c9a2578c217723 (patch) | |
tree | 9998a7df2eb90c7fa842542298fecc391417c38a | |
parent | 5d97c12859fefca943e630ee5739ae5bf185099b (diff) | |
download | cairo-c43ff33c43821c555756cc8281c9a2578c217723.tar.gz |
Fix conversion from ISO 8601 to PDF date string
The code used to unintentionally drop the minutes from the timezone
offset, see issue #392. This is now fixed.
-rw-r--r-- | src/cairo-pdf-interchange.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-pdf-interchange.c b/src/cairo-pdf-interchange.c index 7d8981b09..0f896d351 100644 --- a/src/cairo-pdf-interchange.c +++ b/src/cairo-pdf-interchange.c @@ -1666,7 +1666,8 @@ iso8601_to_pdf_date_string (const char *iso) if (strlen (p) < 3) goto finish; - strncat (buf, p + 1, 3); + strncat (buf, p + 1, 2); + strcat (buf, "'"); finish: strcat (buf, ")"); |