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:
f97b4da
)
Fix localtime issue for adjusting milliseconds
65/214465/1
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>
Mon, 23 Sep 2019 06:53:31 +0000
(15:53 +0900)
Change-Id: I49de2b22e4701e6c99893bb016176b8b91a5512c
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/alarm-lib.c
patch
|
blob
|
history
diff --git
a/src/alarm-lib.c
b/src/alarm-lib.c
index 391b695c0e7c2cf0d3cf1b909444587bf0d626d8..e058ddb913042c75843f6bb7a7fb957043a5e324 100755
(executable)
--- a/
src/alarm-lib.c
+++ b/
src/alarm-lib.c
@@
-440,7
+440,7
@@
static void __adjust_current_milliseconds(alarm_info_t *alarm_info)
start_tm.tm_min = alarm_info->start.min;
start_tm.tm_sec = alarm_info->start.sec;
- start =
mktime
(&start_tm);
+ start =
timegm
(&start_tm);
if (current_time.tv_sec == start) {
start += 1;