return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
}
- }]);
+ }]).
+ filter('registration_timestamp', function() {
+ return function(text) {
+ var timestamp = parseInt( text.split(/\./)[1] );
+ var date = new Date(timestamp / 100); // 100000 / 1000
+ return date.toISOString();
+ }
+ });