Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to force the min date return #1

Open
wants to merge 1 commit into
base: agendrix
Choose a base branch
from

Conversation

hoffsilva-agendrix
Copy link

Lorsque nous utilisons le voice over, il y a un crash causé par un bug dans la logique de calcul du premier jour de l'intervalle du FSCalendar. Alors, comme avec le voice over la date sélectionnée automatiquement est la date minimale de l'intervalle de la bibliothèque, mais dans ces fonctions le calcul finit par créer une date invalide 1969/12/29, causant un crash avec ce message d'erreur 'FSCalendar date out of bounds exception', reason: 'Target date 1969/12/29 beyond bounds [1970/01/01 - 2099/12/31]'.

Copy link

@YannickGagnon YannickGagnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je n'ai pas testé, mais minimalisent, il faudrait que tes changements fonctionnes et pour cela, il faut utiliser les bonnes variables hahaha

Comment on lines +193 to +197
if (firstDayOfWeek < week) {
return week;
} else {
return lastDayOfWeek;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (firstDayOfWeek < week) {
return week;
} else {
return lastDayOfWeek;
}
if (lastDayOfWeek < week) {
return week;
} else {
return lastDayOfWeek;
}

Comment on lines +210 to +214
if (firstDayOfWeek < week) {
return week;
} else {
return middleDayOfWeek;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (firstDayOfWeek < week) {
return week;
} else {
return middleDayOfWeek;
}
if (middleDayOfWeek < week) {
return week;
} else {
return middleDayOfWeek;
}

@Mathbl

This comment was marked as resolved.

@YannickGagnon

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants