projects
/
platform
/
core
/
appfw
/
alarm-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d091252
)
Fix localtime issue for adjusting milliseconds
70/214470/2
author
Inkyun Kil
<inkyun.kil@samsung.com>
Mon, 23 Sep 2019 06:53:31 +0000
(15:53 +0900)
committer
Inkyun Kil
<inkyun.kil@samsung.com>
Thu, 26 Sep 2019 01:49:55 +0000
(10:49 +0900)
Change-Id: I49de2b22e4701e6c99893bb016176b8b91a5512c
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
lib/alarm-lib.c
patch
|
blob
|
history
diff --git
a/lib/alarm-lib.c
b/lib/alarm-lib.c
index
30c7748
..
baabca2
100644
(file)
--- a/
lib/alarm-lib.c
+++ b/
lib/alarm-lib.c
@@
-479,8
+479,9
@@
static void __adjust_current_milliseconds(alarm_info_t *alarm_info)
start_tm.tm_hour = alarm_info->start.hour;
start_tm.tm_min = alarm_info->start.min;
start_tm.tm_sec = alarm_info->start.sec;
+ start_tm.tm_isdst = -1;
- start =
mktime
(&start_tm);
+ start =
timegm
(&start_tm);
if (current_time.tv_sec == start) {
start += 1;