76a39a
diff -up at-3.1.18/parsetime.y.dst at-3.1.18/parsetime.y
76a39a
--- at-3.1.18/parsetime.y.dst	2015-12-06 16:45:10.000000000 +0100
76a39a
+++ at-3.1.18/parsetime.y	2015-07-01 13:53:14.088881926 +0200
76a39a
@@ -476,8 +476,8 @@ parsetime(time_t currtime, int argc, cha
76a39a
     exectm = *localtime(&currtime);
76a39a
     currtime -= exectm.tm_sec;
76a39a
     exectm.tm_sec = 0;
76a39a
-    exectm.tm_isdst = -1;
76a39a
     memcpy(&currtm,&exectm,sizeof(currtm));
76a39a
+    exectm.tm_isdst = -1;
76a39a
     time_only = 0;
76a39a
     yearspec = 0;
76a39a
 
76a39a
@@ -503,8 +503,8 @@ parsetime(time_t currtime, int argc, cha
76a39a
 	    return 0;
76a39a
 	if (isgmt) {
76a39a
 	    exectime -= timezone;
76a39a
-	    if (currtm.tm_isdst && !exectm.tm_isdst)
76a39a
-		exectime -= 3600;
76a39a
+	    if (exectm.tm_isdst)
76a39a
+		exectime += 3600;
76a39a
 	}
76a39a
 	if (exectime < currtime)
76a39a
 		panic("refusing to create job destined in the past");