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