]> err.no Git - scalable-opengroupware.org/blobdiff - SOGo/UI/Scheduler/UIxCalWeekView.m
more code for day overview and the usual fixes
[scalable-opengroupware.org] / SOGo / UI / Scheduler / UIxCalWeekView.m
index 5696cfa1befc6d16ab35e986e51765e9ab594f32..8d2240748ca429c3c431ac89ddfda3bb59c02867 100644 (file)
@@ -1,17 +1,20 @@
 // $Id$
 
 #include "UIxCalWeekView.h"
+#include <NGExtensions/NGExtensions.h>
 #include "common.h"
 
 @implementation UIxCalWeekView
 
 - (NSCalendarDate *)startDate {
-  return [[[super startDate] mondayOfWeek] beginOfDay];
+    return [[[super startDate] mondayOfWeek] hour:[self dayStartHour]
+                                             minute:0];
 }
 
 - (NSCalendarDate *)endDate {
   return [[[self startDate] dateByAddingYears:0 months:0 days:7
-                          hours:0 minutes:0 seconds:0] endOfDay];
+                                        hours:0 minutes:0 seconds:0]
+                            hour:[self dayEndHour] minute:0];
 }
 
 /* URLs */