mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07: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:
parent
0ba19f0cd7
commit
18874e2c79
32 changed files with 4049 additions and 1808 deletions
|
@ -4,11 +4,11 @@ define(
|
|||
'handlebars',
|
||||
'Shared/FormatHelpers',
|
||||
'moment'
|
||||
], function (Handlebars, FormatHelpers, Moment) {
|
||||
], function (Handlebars, FormatHelpers, moment) {
|
||||
Handlebars.registerHelper('EpisodeNumber', function () {
|
||||
|
||||
if (this.series.seriesType === 'daily') {
|
||||
return Moment(this.airDate).format('L');
|
||||
return moment(this.airDate).format('L');
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -21,9 +21,9 @@ define(
|
|||
|
||||
var hasFile = this.hasFile;
|
||||
var downloading = require('History/Queue/QueueCollection').findEpisode(this.id) || this.downloading;
|
||||
var currentTime = Moment();
|
||||
var start = Moment(this.airDateUtc);
|
||||
var end = Moment(this.end);
|
||||
var currentTime = moment();
|
||||
var start = moment(this.airDateUtc);
|
||||
var end = moment(this.end);
|
||||
|
||||
if (hasFile) {
|
||||
return 'success';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue