Commit 2b056eb1 authored by Sam Thursfield's avatar Sam Thursfield

Merge branch 'wip/carlosg/gstreamer-date-timezones' into 'master'

tracker-extract-gstreamer: Fix iso 8601 string generation in negative TZs

Closes tracker#22

See merge request GNOME/tracker-miners!15
parents 12903399 6035b4c0
......@@ -230,7 +230,7 @@ get_gst_date_time_to_buf (GstDateTime *date_time,
if (gst_date_time_has_time (date_time)) {
hour = gst_date_time_get_hour (date_time);
minute = gst_date_time_get_minute (date_time);
offset_str = gst_date_time_get_time_zone_offset (date_time) >= 0 ? "+" : "";
offset_str = gst_date_time_get_time_zone_offset (date_time) >= 0 ? "+" : "-";
offset = gst_date_time_get_time_zone_offset (date_time);
} else {
offset_str = "+";
......@@ -245,7 +245,7 @@ get_gst_date_time_to_buf (GstDateTime *date_time,
minute,
second,
offset_str,
(gint) offset);
(gint) ABS (offset));
return complete;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment