mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-26 00:43: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
|
- (id) init
|
||||||
{
|
{
|
||||||
|
NSCalendarDate *referenceDate;
|
||||||
SOGoDomainDefaults *dd;
|
SOGoDomainDefaults *dd;
|
||||||
|
|
||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
@@ -107,7 +108,10 @@ static NSArray *reminderValues = nil;
|
|||||||
client = nil;
|
client = nil;
|
||||||
#warning user should be the owner rather than the activeUser
|
#warning user should be the owner rather than the activeUser
|
||||||
ASSIGN (user, [context 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;
|
calendarCategories = nil;
|
||||||
calendarCategoriesColors = nil;
|
calendarCategoriesColors = nil;
|
||||||
|
|||||||
Reference in New Issue
Block a user