[poppler] poppler/DateInfo.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 24 15:43:17 UTC 2020
poppler/DateInfo.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 3d69e0de6a136cde9844b63886294ae532bc50aa
Author: Albert Astals Cid <albert.astals.cid at kdab.com>
Date: Tue Nov 24 16:36:49 2020 +0100
timeToDateString: We forgot the ' after the minutes
Adobe Reader seems to be particularly strict about this
diff --git a/poppler/DateInfo.cc b/poppler/DateInfo.cc
index 810bec9b..d277ee74 100644
--- a/poppler/DateInfo.cc
+++ b/poppler/DateInfo.cc
@@ -7,6 +7,7 @@
// Copyright (C) 2015 André Guerreiro <aguerreiro1985 at gmail.com>
// Copyright (C) 2015 André Esser <bepandre at hotmail.com>
// Copyright (C) 2016, 2018 Adrian Johnson <ajohnson at redneon.com>
+// Copyright (C) 2020 Klarälvdalens Datakonsult AB, a KDAB Group company, <info at kdab.com>. Work sponsored by Technische Universität Dresden
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -87,9 +88,9 @@ GooString *timeToDateString(const time_t *timeA)
const time_t timeg = timegm(&localtime_tm);
const time_t offset = difftime(timeg, timet); // find time zone offset in seconds
if (offset > 0) {
- dateString->appendf("+{0:02d}'{1:02d}", offset / 3600, (offset % 3600) / 60);
+ dateString->appendf("+{0:02d}'{1:02d}'", offset / 3600, (offset % 3600) / 60);
} else if (offset < 0) {
- dateString->appendf("-{0:02d}'{1:02d}", -offset / 3600, (-offset % 3600) / 60);
+ dateString->appendf("-{0:02d}'{1:02d}'", -offset / 3600, (-offset % 3600) / 60);
} else {
dateString->append("Z");
}
More information about the poppler
mailing list