mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 19:48:53 +00:00
Monotone-Parent: 4670a90c9e9ff683de9c0300911f03d344608d48
Monotone-Revision: 5d7a44d3b59de321eabbecb54aab769dad3132cc Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-15T04:41:06 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -160,11 +160,13 @@
|
||||
return [self _dateQueryParametersWithOffset: 2];
|
||||
}
|
||||
|
||||
- (NSString *) _monthNameWithOffsetFromThisMonth: (int) offset
|
||||
- (NSString *) _monthNameWithOffsetFromThisMonth: (int) monthsOffset
|
||||
{
|
||||
NSCalendarDate *date;
|
||||
NSCalendarDate *date, *firstDay;
|
||||
|
||||
date = [[self selectedDate] dateByAddingYears: 0 months: offset days: 0];
|
||||
firstDay = [[self selectedDate] firstDayOfMonth];
|
||||
date = [firstDay dateByAddingYears: 0 months: monthsOffset
|
||||
days: 0 hours: 0 minutes: 0 seconds: 0];
|
||||
|
||||
return [self localizedNameForMonthOfYear: [date monthOfYear]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user