Blame SOURCES/at-3.1.13-utc-dst.patch

9ccead
diff -up at-3.1.13/parsetime.y.dst at-3.1.13/parsetime.y
9ccead
--- at-3.1.13/parsetime.y.dst	2011-06-25 14:43:14.000000000 +0200
9ccead
+++ at-3.1.13/parsetime.y	2016-04-20 17:23:24.140171655 +0200
9ccead
@@ -476,8 +476,8 @@ parsetime(time_t currtime, int argc, cha
9ccead
     exectm = *localtime(&currtime);
9ccead
     currtime -= exectm.tm_sec;
9ccead
     exectm.tm_sec = 0;
9ccead
-    exectm.tm_isdst = -1;
9ccead
     memcpy(&currtm,&exectm,sizeof(currtm));
9ccead
+    exectm.tm_isdst = -1;
9ccead
     time_only = 0;
9ccead
     yearspec = 0;
9ccead
 
9ccead
@@ -503,8 +503,8 @@ parsetime(time_t currtime, int argc, cha
9ccead
 	    return 0;
9ccead
 	if (isgmt) {
9ccead
 	    exectime -= timezone;
9ccead
-	    if (currtm.tm_isdst && !exectm.tm_isdst)
9ccead
-		exectime -= 3600;
9ccead
+	    if (exectm.tm_isdst)
9ccead
+		exectime += 3600;
9ccead
 	}
9ccead
 	if (exectime < currtime)
9ccead
 		panic("refusing to create job destined in the past");