Blame SOURCES/0006-Fix-Date-Correctly-set-time-from-seconds-since-epoch.patch

3d71c6
From: Andrew Beekhof <andrew@beekhof.net>
3d71c6
Date: Tue, 18 Aug 2015 11:06:13 +1000
3d71c6
Subject: [PATCH] Fix: Date: Correctly set time from seconds-since-epoch
3d71c6
3d71c6
(cherry picked from commit efa318114d0b2124cc82fe143403e6de502e0134)
3d71c6
---
3d71c6
 lib/common/iso8601.c | 1 +
3d71c6
 1 file changed, 1 insertion(+)
3d71c6
3d71c6
diff --git a/lib/common/iso8601.c b/lib/common/iso8601.c
3d71c6
index 769e01b..5f4a73d 100644
3d71c6
--- a/lib/common/iso8601.c
3d71c6
+++ b/lib/common/iso8601.c
3d71c6
@@ -1011,6 +1011,7 @@ ha_set_tm_time(crm_time_t * target, struct tm *source)
3d71c6
         target->days = 1 + source->tm_yday;
3d71c6
     }
3d71c6
 
3d71c6
+    target->seconds = 0;
3d71c6
     if (source->tm_hour >= 0) {
3d71c6
         target->seconds += 60 * 60 * source->tm_hour;
3d71c6
     }