diff options
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx b/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx index b99a923dd6b..fc5f347964d 100644 --- a/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx +++ b/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx @@ -38,7 +38,7 @@ jest.mock('../../../../api/system', () => { }); function formatDate(date: Date): string { - return `${date.getFullYear()}-${date.getMonth()}-${date.getDay()}`; + return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`; } it('should render correctly', async () => { |