Allow the date formatter to be set from external

This commit is contained in:
Thomas Wana 2016-03-24 10:36:25 +01:00
parent 467388d233
commit 70fa598cf0

View File

@ -639,6 +639,9 @@
initDateFormatter(); initDateFormatter();
} }
}, },
setDateFormatter: function(dateFormatter) {
dateHelper = dateFormatter;
},
RFC_2822: 'D, d M Y H:i:s O', RFC_2822: 'D, d M Y H:i:s O',
ATOM: 'Y-m-d\TH:i:sP', ATOM: 'Y-m-d\TH:i:sP',
ISO_8601: 'Y-m-d\TH:i:sO', ISO_8601: 'Y-m-d\TH:i:sO',