aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-30 23:18:42 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:05 +0800
commit1ab47c13608df8d3bb0892c6614473b504c352dc (patch)
tree3b683ca98be0460ad57da8564aefe7f79a781dfb /calendar/gui
parentfc91bfc86e3a58d97d7819dbbbda74a33d3f1c2a (diff)
downloadgsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.tar
gsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.tar.gz
gsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.tar.bz2
gsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.tar.lz
gsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.tar.xz
gsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.tar.zst
gsoc2013-evolution-1ab47c13608df8d3bb0892c6614473b504c352dc.zip
Default to beginning of the day for the last alarm notification
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c2
-rw-r--r--calendar/gui/alarm-notify/config-data.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index e8b3f86201..38db9368e6 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -1867,7 +1867,7 @@ alarm_queue_init (gpointer data)
queue_midnight_refresh ();
if (config_data_get_last_notification_time (NULL) == -1) {
- time_t tmval = time (NULL);
+ time_t tmval = time_day_begin (time (NULL));
d(printf("%s:%d (alarm_queue_init) - Setting last notification time to %s\n",__FILE__, __LINE__, e_ctime(&tmval)));
config_data_set_last_notification_time (NULL, tmval);
}
diff --git a/calendar/gui/alarm-notify/config-data.c b/calendar/gui/alarm-notify/config-data.c
index 00cb0dc7ba..65e3e15a87 100644
--- a/calendar/gui/alarm-notify/config-data.c
+++ b/calendar/gui/alarm-notify/config-data.c
@@ -336,7 +336,7 @@ config_data_get_last_notification_time (ECal *cal)
return val;
}
- return time (NULL);
+ return -1;
}
/**