mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Calendar/Date localization
New: Choose calendar starting day of week New: Choose prefered date/time formats New: Option to disable relative dates and show absolute dates instead
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'api!config/ui'
|
||||
], function (Backbone, uiSettings) {
|
||||
var UiSettings = Backbone.Model.extend({
|
||||
|
||||
url : window.NzbDrone.ApiRoot + '/config/ui',
|
||||
|
||||
shortDateTime : function () {
|
||||
return this.get('shortDateFormat') + ' ' + this.get('timeFormat').replace('(', '').replace(')', '');
|
||||
},
|
||||
|
||||
longDateTime : function () {
|
||||
return this.get('longDateFormat') + ' ' + this.get('timeFormat').replace('(', '').replace(')', '');
|
||||
}
|
||||
});
|
||||
|
||||
var instance = new UiSettings(uiSettings);
|
||||
return instance;
|
||||
});
|
||||
Reference in New Issue
Block a user