2011-07-05 03:48:52 -04:00
|
|
|
$OpenBSD: patch-libplanner_mrp-time_c,v 1.2 2011/07/05 07:48:52 jasper Exp $
|
2009-09-02 03:44:16 -04:00
|
|
|
|
|
|
|
Fix calendar calculation: UTC cannot have DST.
|
|
|
|
|
2011-07-05 03:48:52 -04:00
|
|
|
--- libplanner/mrp-time.c.orig Mon Jul 4 19:51:22 2011
|
|
|
|
+++ libplanner/mrp-time.c Mon Jul 4 19:51:45 2011
|
2009-09-02 03:44:16 -04:00
|
|
|
@@ -171,6 +171,7 @@ mrp_time_from_tm (struct tm *tm)
|
|
|
|
/* This is a hack. Set the timezone to UTC temporarily. */
|
|
|
|
old_tz = g_strdup (g_getenv ("TZ"));
|
|
|
|
g_setenv ("TZ", "UTC", TRUE);
|
|
|
|
+ tm->tm_isdst = 0;
|
2011-07-05 03:48:52 -04:00
|
|
|
|
2009-09-02 03:44:16 -04:00
|
|
|
t = mktime (tm);
|
|
|
|
|