summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungYeup Kim <sy2004.kim@samsung.com>2013-04-18 09:38:12 +0900
committerSeungYeup Kim <sy2004.kim@samsung.com>2013-04-18 09:38:12 +0900
commit3dd929ac72e944575cfd0d556e755ab03c35a929 (patch)
treea02d8814ee2c6116cdca354fb6e35c3f92b0fc0f
parent3aedc953dccdaffbbd4cd378c4fcc8a3ed2943ad (diff)
downloadalarm-manager-2.1b_release.tar.gz
alarm-manager-2.1b_release.tar.bz2
alarm-manager-2.1b_release.zip
-rwxr-xr-xalarm-manager.c5
-rwxr-xr-xpackaging/alarm-manager.spec2
2 files changed, 6 insertions, 1 deletions
diff --git a/alarm-manager.c b/alarm-manager.c
index c0d6a46..2698503 100755
--- a/alarm-manager.c
+++ b/alarm-manager.c
@@ -1670,6 +1670,7 @@ this value to 0(zero)
static void __on_system_time_external_changed(keynode_t *node, void *data)
{
double diff_time;
+ time_t cur_time = 0;
_alarm_disable_timer(alarm_context);
@@ -1687,6 +1688,10 @@ static void __on_system_time_external_changed(keynode_t *node, void *data)
ALARM_MGR_LOG_PRINT("1.alarm_context.c_due_time is %d\n",
alarm_context.c_due_time);
+ // set rtc time only because the linux time is set externally
+ time(&cur_time);
+ _set_rtc_time(cur_time);
+
vconf_set_dbl(VCONFKEY_SYSTEM_TIMEDIFF, diff_time);
vconf_set_int(VCONFKEY_SYSTEM_TIME_CHANGED,(int)diff_time);
diff --git a/packaging/alarm-manager.spec b/packaging/alarm-manager.spec
index e67a1b6..906e220 100755
--- a/packaging/alarm-manager.spec
+++ b/packaging/alarm-manager.spec
@@ -1,6 +1,6 @@
Name: alarm-manager
Summary: Alarm library
-Version: 0.4.67
+Version: 0.4.68
Release: 1
Group: System/Libraries
License: Apache License, Version 2.0