summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2020-11-24 16:36:49 +0100
committerAlbert Astals Cid <aacid@kde.org>2020-11-24 16:38:01 +0100
commit3d69e0de6a136cde9844b63886294ae532bc50aa (patch)
tree168d3e5d60e9f7019c3d11c72d71ef26ee746491
parentfb93776c423c166547d952bc199b14383a1d4d8d (diff)
timeToDateString: We forgot the ' after the minutes
Adobe Reader seems to be particularly strict about this
-rw-r--r--poppler/DateInfo.cc5
1 files changed, 3 insertions, 2 deletions
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@gmail.com>
// Copyright (C) 2015 André Esser <bepandre@hotmail.com>
// Copyright (C) 2016, 2018 Adrian Johnson <ajohnson@redneon.com>
+// Copyright (C) 2020 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@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");
}