* Add dateTimeFormat

This commit is contained in:
Bryan Ashby 2015-09-01 22:42:54 -06:00
parent e0f267c9a5
commit 8b3b36fd83
3 changed files with 15 additions and 2 deletions

View file

@ -77,6 +77,17 @@ function loadTheme(themeID, cb) {
if(_.has(theme, 'customization.defaults.timeFormat')) {
return theme.customization.defaults.timeFormat[style] || format;
}
return format;
},
getDateTimeFormat : function(style) {
style = style || 'short';
var format = Config.defaults.dateTimeFormat[style] || 'MM/DD/YYYY h:mm a';
if(_.has(theme, 'customization.defaults.dateTimeFormat')) {
return theme.customization.defaults.dateTimeFormat[style] || format;
}
return format;
}
};