From 1fe5e392543f219d309273aa865a5ececc6d6a9a Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 6 Apr 2015 10:55:42 -0400 Subject: [PATCH] Default value for short date format --- UI/PreferencesUI/UIxJSONPreferences.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/PreferencesUI/UIxJSONPreferences.m b/UI/PreferencesUI/UIxJSONPreferences.m index 525954124..b1c6af7a9 100644 --- a/UI/PreferencesUI/UIxJSONPreferences.m +++ b/UI/PreferencesUI/UIxJSONPreferences.m @@ -59,7 +59,10 @@ defaults = [[context activeUser] userDefaults]; dirty = NO; - + + if (![[defaults source] objectForKey: @"SOGoShortDateFormat"]) + [[defaults source] setObject: @"default" forKey: @"SOGoShortDateFormat"]; + if (![[defaults source] objectForKey: @"SOGoLongDateFormat"]) [[defaults source] setObject: @"default" forKey: @"SOGoLongDateFormat"];