mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-24 10:56:22 +00:00
(Preferences) Always show a date before the 10th
So that %d and %e return two different strings.
This commit is contained in:
@@ -98,6 +98,7 @@ static NSArray *reminderValues = nil;
|
||||
|
||||
- (id) init
|
||||
{
|
||||
NSCalendarDate *referenceDate;
|
||||
SOGoDomainDefaults *dd;
|
||||
|
||||
if ((self = [super init]))
|
||||
@@ -107,7 +108,10 @@ static NSArray *reminderValues = nil;
|
||||
client = nil;
|
||||
#warning user should be the owner rather than the activeUser
|
||||
ASSIGN (user, [context activeUser]);
|
||||
ASSIGN (today, [NSCalendarDate date]);
|
||||
referenceDate = [NSCalendarDate date];
|
||||
if ([referenceDate dayOfMonth] > 9)
|
||||
referenceDate = [referenceDate addYear:0 month:0 day:(-[referenceDate dayOfMonth] + 1) hour:0 minute:0 second:0];
|
||||
ASSIGN (today, referenceDate);
|
||||
|
||||
calendarCategories = nil;
|
||||
calendarCategoriesColors = nil;
|
||||
|
||||
Reference in New Issue
Block a user