commit aa0e9c4d42f7ae4a856c5716444e9333b099013b
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Wed Oct 2 09:02:19 2013 +1000
Fix: iso8601: Prevent dates from jumping backwards a day in some timezones
(cherry picked from commit ed70b9864247030bc21163411b60a7e962068d88)
diff --git a/lib/common/iso8601.c b/lib/common/iso8601.c
index d68e7e6..d88c519 100644
--- a/lib/common/iso8601.c
+++ b/lib/common/iso8601.c
@@ -1115,7 +1115,6 @@ crm_time_add_seconds(crm_time_t * a_time, int extra)
days++;
}
- days = 0;
while (a_time->seconds < 0) {
crm_trace("s=%d, d=%d", a_time->seconds, days);
a_time->seconds += seconds;