diff --git a/main/http_server/axe-os/src/app/pipes/date-ago.pipe.ts b/main/http_server/axe-os/src/app/pipes/date-ago.pipe.ts index 40d79902..48659dd0 100644 --- a/main/http_server/axe-os/src/app/pipes/date-ago.pipe.ts +++ b/main/http_server/axe-os/src/app/pipes/date-ago.pipe.ts @@ -8,6 +8,7 @@ export class DateAgoPipe implements PipeTransform { transform(value: any, args?: any): any { if (value) { + value = new Date().getTime() - value * 1000; const seconds = Math.floor((+new Date() - +new Date(value)) / 1000); if (seconds < 29) // less than 30 seconds ago will show as 'Just now' return 'Just now';