mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
19 lines
392 B
JavaScript
19 lines
392 B
JavaScript
"use strict";
|
|
define(['app'], function () {
|
|
|
|
return 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();
|
|
}
|
|
}
|
|
});
|
|
});
|