mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
fix(Calendar): toMonthYear returned incorrect month depending on the day
This commit is contained in:
parent
57fc3bc263
commit
79cde15ade
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ const useCalendarDate = (profile: Profile) => {
|
|||
if (!calendarDate) return '';
|
||||
|
||||
const date = new Date();
|
||||
date.setDate(1);
|
||||
date.setMonth(calendarDate.month - 1);
|
||||
date.setFullYear(calendarDate.year);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue