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