(js) Add support for %p in date formatting

Fixes #3480
This commit is contained in:
Francis Lachapelle
2016-02-01 20:54:37 -05:00
parent a95fd25e09
commit 6bfc44fb53
4 changed files with 21 additions and 3 deletions
+10
View File
@@ -64,6 +64,7 @@
@implementation UIxComponent
static NSMutableArray *amPmLabelKeys = nil;
static NSMutableArray *dayLabelKeys = nil;
static NSMutableArray *abbrDayLabelKeys = nil;
static NSMutableArray *monthLabelKeys = nil;
@@ -72,6 +73,10 @@ static SoProduct *commonProduct = nil;
+ (void)initialize {
if (dayLabelKeys == nil) {
amPmLabelKeys = [[NSMutableArray alloc] initWithCapacity:2];
[amPmLabelKeys addObject:@"AM"];
[amPmLabelKeys addObject:@"PM"];
dayLabelKeys = [[NSMutableArray alloc] initWithCapacity:7];
[dayLabelKeys addObject:@"Sunday"];
[dayLabelKeys addObject:@"Monday"];
@@ -124,6 +129,11 @@ static SoProduct *commonProduct = nil;
}
}
+ (NSArray *) amPmLabelKeys
{
return (NSArray *) amPmLabelKeys;
}
+ (NSArray *) abbrDayLabelKeys
{
return (NSArray *) abbrDayLabelKeys;