From be684c9a11c3347acb5f05bbcebe8d6d0f921745 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 22 Nov 2024 08:39:51 -0800 Subject: [PATCH] Fix: handle very old dates with positive offset too (#8335) --- .../correspondent-list.component.spec.ts | 9 +++++++-- .../correspondent-list/correspondent-list.component.ts | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.spec.ts b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.spec.ts index 788f6e368..92e0ea758 100644 --- a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.spec.ts +++ b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.spec.ts @@ -77,14 +77,19 @@ describe('CorrespondentListComponent', () => { it('should support very old date strings', () => { jest.spyOn(correspondentsService, 'listFiltered').mockReturnValue( of({ - count: 1, - all: [1], + count: 2, + all: [1, 2], results: [ { id: 1, name: 'Correspondent1', last_correspondence: '1832-12-31T15:32:54-07:52:58', }, + { + id: 2, + name: 'Correspondent2', + last_correspondence: '1901-07-01T00:00:00+00:09:21', + }, ], }) ) diff --git a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts index 9b2d9f3b9..224b9c8a3 100644 --- a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts +++ b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts @@ -52,7 +52,7 @@ export class CorrespondentListComponent extends ManagementListComponent