[38076] Use createdAt, not updatedAt for IAN rendering

https://community.openproject.org/work_packages/38076
pull/9498/head
Oliver Günther 3 years ago
parent 938c6e5619
commit 91e1b55fb2
  1. 4
      frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts

@ -92,10 +92,10 @@ export class InAppNotificationEntryComponent implements OnInit {
}
private buildTime() {
this.fixedTime = this.timezoneService.formattedDatetime(this.notification.updatedAt);
this.fixedTime = this.timezoneService.formattedDatetime(this.notification.createdAt);
this.relativeTime$ = timer(0, 10000)
.pipe(
map(() => this.timezoneService.formattedRelativeDateTime(this.notification.updatedAt)),
map(() => this.timezoneService.formattedRelativeDateTime(this.notification.createdAt)),
distinctUntilChanged(),
);
}

Loading…
Cancel
Save