Fix content end date if already in new year (#15376)

* Fix content end date if already in new year

* fix test
This commit is contained in:
Phillip Thelen
2025-01-02 18:15:04 +01:00
committed by GitHub
parent aa432022d3
commit 62e6fbef61
3 changed files with 10 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ describe('POST /debug/jump-time', () => {
expect(resultDate.getDate()).to.eql(today.getDate());
expect(resultDate.getMonth()).to.eql(today.getMonth());
expect(resultDate.getFullYear()).to.eql(today.getFullYear());
const newResultDate = new Date((await user.post('/debug/jump-time', { offsetDays: 355 })).time);
const newResultDate = new Date((await user.post('/debug/jump-time', { offsetDays: 365 })).time);
expect(newResultDate.getFullYear()).to.eql(today.getFullYear() + 1);
});