mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 02:15:36 +00:00
Monotone-Parent: b6562cfc2be0b285ef7b97891b12497ca0e09dd8
Monotone-Revision: d4191b6ff0161c67b15e1e4cbdaf5106cfac70fc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-04T19:19:38 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-10-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* Main/sogod.m (main): initialize the NSTimeZone's defaultTimeZone
|
||||
to the value of SOGoServerTimeZone or "Canada/Eastern" if not found.
|
||||
|
||||
2006-10-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/SchedulerUI.js: added code to scroll the
|
||||
|
||||
+16
-4
@@ -19,10 +19,16 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <NGObjWeb/NGObjWeb.h>
|
||||
#include "common.h"
|
||||
#import <Foundation/NSUserDefaults.h>
|
||||
#import <Foundation/NSTimeZone.h>
|
||||
|
||||
int main(int argc, char **argv, char **env) {
|
||||
#import <NGObjWeb/NGObjWeb.h>
|
||||
#import "common.h"
|
||||
|
||||
int main(int argc, char **argv, char **env)
|
||||
{
|
||||
NSString *tzName;
|
||||
NSUserDefaults *ud;
|
||||
NSAutoreleasePool *pool;
|
||||
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
@@ -30,7 +36,13 @@ int main(int argc, char **argv, char **env) {
|
||||
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
|
||||
#endif
|
||||
[NGBundleManager defaultBundleManager];
|
||||
|
||||
|
||||
ud = [NSUserDefaults standardUserDefaults];
|
||||
tzName = [ud stringForKey: @"SOGoServerTimeZone"];
|
||||
if (!tzName)
|
||||
tzName = @"Canada/Eastern";
|
||||
[NSTimeZone setDefaultTimeZone: [NSTimeZone timeZoneWithName: tzName]];
|
||||
|
||||
WOWatchDogApplicationMain(@"SOGo", argc, (void*)argv);
|
||||
|
||||
[pool release];
|
||||
|
||||
Reference in New Issue
Block a user