From 7c13df2ecf60c9e82689a96cad438c9c607817bb Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Mon, 2 Apr 2018 15:34:27 +0900 Subject: [PATCH] Fix issue that standard time for periodic The periodic_alarm_standard_time value is not synchronized when time is changed Change-Id: I4cf2602833d23595903d37844e88b04e83a6c44a Signed-off-by: Inkyun Kil --- alarm-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alarm-manager.c b/alarm-manager.c index 349c7c4..a731664 100644 --- a/alarm-manager.c +++ b/alarm-manager.c @@ -781,6 +781,9 @@ static bool __alarm_update_due_time_of_all_items_in_list(double diff_time) struct tm due_time_result ; is_time_changed = true; + if (periodic_alarm_standard_time != 0) + periodic_alarm_standard_time += diff_time; + tzset(); for (iter = alarm_context.alarms; iter != NULL; iter = g_slist_next(iter)) { entry = iter->data; -- 2.7.4