1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-01 12:08:01 +00:00
Lidarr/UI/Shared/Footer/Model.js
2013-06-15 15:19:06 -07:00

20 lines
458 B
JavaScript

"use strict";
define(['app'], function () {
NzbDrone.Shared.Footer.Model = Backbone.Model.extend({
defaults: {
'version' : '0.0.0.0',
'buildDate' : Date.create()
},
mutators: {
humanizedBuildDate: function () {
var date = Date.create(this.get('buildDate'));
return date.short();
}
}
});
return NzbDrone.Shared.Footer.Model;
});