]> err.no Git - scalable-opengroupware.org/blobdiff - UI/Scheduler/UIxCalMainView.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1196 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Scheduler / UIxCalMainView.m
index 80b66f66d643de14a889d0490b4521183bc4fce4..a7c0126f060302b677a72c7daccf147e50f5f3fa 100644 (file)
@@ -23,6 +23,7 @@
 #import <Foundation/NSArray.h>
 #import <Foundation/NSCalendarDate.h>
 #import <Foundation/NSString.h>
+#import <Foundation/NSTimeZone.h>
 #import <Foundation/NSUserDefaults.h>
 #import <Foundation/NSValue.h>
 
@@ -41,6 +42,15 @@ static NSMutableArray *yearMenuItems = nil;
 
 @implementation UIxCalMainView
 
+- (NSString *) userUTCOffset
+{
+  NSTimeZone *userTZ;
+
+  userTZ = [[context activeUser] timeZone];
+
+  return [NSString stringWithFormat: @"%d", [userTZ secondsFromGMT]];
+}
+
 - (NSArray *) monthMenuItems
 {
   unsigned int count;
@@ -99,19 +109,4 @@ static NSMutableArray *yearMenuItems = nil;
   return yearMenuItem;
 }
 
-- (id) batchDeleteAction
-{
-  NSArray *ids;
-  SOGoAppointmentFolder *clientObject;
-
-  ids = [[self queryParameterForKey: @"ids"] componentsSeparatedByString: @"/"];
-  if (ids)
-    {
-      clientObject = [self clientObject];
-      [clientObject deleteEntriesWithIds: ids];
-    }
-
-  return self;
-}
-
 @end