mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 18:56:00 +02:00
* Add dateTimeFormat
This commit is contained in:
parent
e0f267c9a5
commit
8b3b36fd83
3 changed files with 15 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue