apps: updateTime should be null if never updated
"TIMESTAMP NULL" is an attribute modifier to make the column nullable. Without it, if you assign null, the timestamp becomes the current time!
This commit is contained in:
@@ -366,6 +366,8 @@ angular.module('Application').filter('trKeyFromPeriod', function () {
|
||||
angular.module('Application').filter('prettyDate', function ($translate) {
|
||||
// http://ejohn.org/files/pretty.js
|
||||
return function prettyDate(utc) {
|
||||
if (utc === null) return $translate.instant('main.prettyDate.never', {});
|
||||
|
||||
var date = new Date(utc), // this converts utc into browser timezone and not cloudron timezone!
|
||||
diff = (((new Date()).getTime() - date.getTime()) / 1000) + 30, // add 30seconds for clock skew
|
||||
day_diff = Math.floor(diff / 86400);
|
||||
|
||||
Reference in New Issue
Block a user