Commits

Tim Donohue authored 9ee733ea80a
Stop using localized Dates.

Ensure we always use UTC dates, as the backend expects/uses UTC.
No tags

src/app/+browse-by/+browse-by-date-page/browse-by-date-page.component.spec.ts

Modified
100 100 comp.items$.subscribe((result) => {
101 101 expect(result.payload.page).toEqual([firstItem]);
102 102 });
103 103 });
104 104
105 105 it('should create a list of startsWith options with the earliest year at the end (rounded down by 10)', () => {
106 106 expect(comp.startsWithOptions[comp.startsWithOptions.length - 1]).toEqual(1950);
107 107 });
108 108
109 109 it('should create a list of startsWith options with the current year first', () => {
110 - expect(comp.startsWithOptions[0]).toEqual(new Date().getFullYear());
110 + expect(comp.startsWithOptions[0]).toEqual(new Date().getUTCFullYear());
111 111 });
112 112 });

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut