summaryrefslogtreecommitdiff
path: root/time/planner/patches/patch-aa
blob: 031a620e588b712dbca94bde0457bd144be922b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$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);