summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2008-09-09 23:18:49 +0200
committerAlbert Astals Cid <aacid@kde.org>2008-09-09 23:18:49 +0200
commitd7f0bce67101f37f8d3e69d7d701388bcdc7200f (patch)
treebfb0a570fbb58ffb7b2a4031f02092736dea76e2 /glib
parent0af8609e6c932de2d85168cc9147854ee84b3a1b (diff)
Qt4 frontend had timezone parsing that got lost when moving to the common function, i suck
Diffstat (limited to 'glib')
-rw-r--r--glib/poppler-document.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index 1d7e04fe..622aff81 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -1508,7 +1508,8 @@ gboolean
_poppler_convert_pdf_date_to_gtime (GooString *date,
GTime *gdate)
{
- int year, mon, day, hour, min, sec;
+ int year, mon, day, hour, min, sec, tz_hour, tz_minute;
+ char tz;
struct tm time;
gchar *date_string, *ds;
GTime result;
@@ -1523,7 +1524,8 @@ _poppler_convert_pdf_date_to_gtime (GooString *date,
ds = date_string;
/* See PDF Reference 1.3, Section 3.8.2 for PDF Date representation */
- if (!parseDateString(ds, &year, &mon, &day, &hour, &min, &sec)) {
+ // TODO do something with the timezone information
+ if (!parseDateString(ds, &year, &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute)) {
g_free (ds);
return FALSE;
}