openbsd-ports/x11/gnome/tracker/patches/patch-src_libtracker-common_tracker-date-time_c
2010-04-16 06:36:50 +00:00

13 lines
506 B
Plaintext

$OpenBSD: patch-src_libtracker-common_tracker-date-time_c,v 1.3 2010/04/16 06:36:50 ajacoutot Exp $
--- src/libtracker-common/tracker-date-time.c.orig Thu Apr 15 12:22:58 2010
+++ src/libtracker-common/tracker-date-time.c Thu Apr 15 19:25:42 2010
@@ -163,7 +163,7 @@ tracker_string_to_date (const gchar *date_string,
t = mktime (&tm);
- offset = -timezone + (tm.tm_isdst > 0 ? 3600 : 0);
+ offset = -localtime(&t)->tm_gmtoff + (tm.tm_isdst > 0 ? 3600 : 0);
}
g_match_info_free (match_info);