Merge pull request #419 from greuff/master

Allow the date formatter to be set from external
This commit is contained in:
Valeriy 2016-03-25 00:09:44 +05:00
commit 8bc423d938

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',