You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/UI/Handlebars/Helpers/DateTime.js

18 lines
439 B

'use strict';
define(
[
'handlebars',
'sugar'
], function (Handlebars) {
Handlebars.registerHelper('ShortDate', function (input) {
if (!input) {
return '';
}
var date = Date.create(input);
var result = '<span title="' + date.full() + '">' + date.short() + '</span>';
return new Handlebars.SafeString(result);
});
});