(js) Add support for %p in date formatting

Fixes #3480
This commit is contained in:
Francis Lachapelle committed 2016-02-01 20:54:37 -05:00
1 parent a95fd25e09
commit 6bfc44fb53
4 files changed
+21 -3

No files matched your search

+5
View File
@@ -232,6 +232,11 @@
// Add strings from Locale
NSDictionary *moreStrings;
// AM/PM
moreStrings = [NSDictionary dictionaryWithObjects: [locale objectForKey: NSAMPMDesignation]
forKeys: [UIxComponent amPmLabelKeys]];
[strings addEntriesFromDictionary: moreStrings];
// Month names
moreStrings = [NSDictionary dictionaryWithObjects: [locale objectForKey: NSMonthNameArray]
forKeys: [UIxComponent monthLabelKeys]];