Monotone-Parent: 34dbce3026b164b07c558711781fcfb5cde0fcff
Monotone-Revision: 1d653d4f984b0eeefbcd5014a68753ef3d761b3c

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-11-04T19:55:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-11-04 19:55:50 +00:00
parent 07225fe588
commit 7a2eff59ea
3 changed files with 28 additions and 9 deletions

View File

@@ -25,6 +25,7 @@
#import <Foundation/NSUserDefaults.h>
#import <Foundation/NSKeyValueCoding.h>
#import <Foundation/NSPathUtilities.h>
#import <Foundation/NSString.h>
#import <NGObjWeb/SoHTTPAuthenticator.h>
#import <NGObjWeb/SoObjects.h>
@@ -240,10 +241,19 @@ static BOOL uixDebugEnabled = NO;
- (void) setSelectedDateQueryParameter: (NSCalendarDate *) _newDate
inDictionary: (NSMutableDictionary *) _qp
{
NSString *day;
if (_newDate)
[_qp setObject: [self dateStringForDate: _newDate] forKey: @"day"];
{
day = [self dateStringForDate: _newDate];
[_qp setObject: day forKey: @"day"];
[_qp setObject: [day substringToIndex: 6] forKey: @"month"];
}
else
[_qp removeObjectForKey:@"day"];
{
[_qp removeObjectForKey:@"day"];
[_qp removeObjectForKey:@"month"];
}
}
- (NSString *) completeHrefForMethod: (NSString *) _method