15 lines
468 B
Plaintext
15 lines
468 B
Plaintext
$NetBSD: patch-aa,v 1.2 2015/03/01 08:40:41 mef Exp $
|
|
|
|
fix a whacky calendar calculation: UTC cannot have DST
|
|
|
|
--- libplanner/mrp-time.c.orig 2011-12-25 11:54:01.000000000 +0900
|
|
+++ libplanner/mrp-time.c 2015-03-01 17:13:05.000000000 +0900
|
|
@@ -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;
|
|
|
|
t = mktime (tm);
|
|
|