mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user