Blob Blame History Raw
From: Andrew Beekhof <andrew@beekhof.net>
Date: Tue, 18 Aug 2015 11:06:13 +1000
Subject: [PATCH] Fix: Date: Correctly set time from seconds-since-epoch

(cherry picked from commit efa318114d0b2124cc82fe143403e6de502e0134)
---
 lib/common/iso8601.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/common/iso8601.c b/lib/common/iso8601.c
index 769e01b..5f4a73d 100644
--- a/lib/common/iso8601.c
+++ b/lib/common/iso8601.c
@@ -1011,6 +1011,7 @@ ha_set_tm_time(crm_time_t * target, struct tm *source)
         target->days = 1 + source->tm_yday;
     }
 
+    target->seconds = 0;
     if (source->tm_hour >= 0) {
         target->seconds += 60 * 60 * source->tm_hour;
     }