Fix invalid last update timestamp

This commit is contained in:
2021-06-10 23:46:05 +02:00
parent 84aad67a30
commit 7240b766f9
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ function isSettingsPanelOpen() {
}
function updateSettingsPanel(asLastUpdate) {
var $LastUpdate = self.tmp('$Settings').find('#last_update').toggle(self.vars(['project', 'mode']) == self.consts.modes.blog);
var $LastUpdate = self.tmp('$Settings').find('#last_update').toggle(self.vars(['project', 'mode']) == self.consts.modes.blog && asLastUpdate.unix_time > 0);
$LastUpdate.find('abbr')
.attr('title', asLastUpdate.formatted_time)
.text(oSpot.lang('last_update')+' '+asLastUpdate.relative_time);