summaryrefslogtreecommitdiff
path: root/src/Event.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-19 05:09:43 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-19 05:09:43 +0200
commit694c7e47ece2cd322b0d2b57b88933a22d2734db (patch)
treec098b2104f1b76db60dd1f50de060c4439437fd8 /src/Event.vala
parent6824050190585821a13ce0f52d314986a25d6c2a (diff)
parentb076314018e4b53d745823754a26eb6fb73a2801 (diff)
Merge tag 'upstream/0.24.1'
Upstream version 0.24.1
Diffstat (limited to 'src/Event.vala')
-rw-r--r--src/Event.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Event.vala b/src/Event.vala
index 3518cab..084df97 100644
--- a/src/Event.vala
+++ b/src/Event.vala
@@ -617,8 +617,10 @@ public class Event : EventSource, ContainerSource, Proxyable, Indexable {
// if the earliest's exposure time was on the day but *before* the boundary hour,
// step it back a day to the prior day's boundary
- if (earliest_tm.hour < EVENT_BOUNDARY_HOUR)
+ if (earliest_tm.hour < EVENT_BOUNDARY_HOUR) {
+ debug("Hour before boundary, shifting back one day");
start_boundary -= TIME_T_DAY;
+ }
time_t end_boundary = (start_boundary + TIME_T_DAY - 1);