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