From c43ff33c43821c555756cc8281c9a2578c217723 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 11 Feb 2020 11:24:16 +0100 Subject: [PATCH] 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. --- src/cairo-pdf-interchange.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ")");