-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: agendrix
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
if (firstDayOfWeek < week) { | ||
return week; | ||
} else { | ||
return lastDayOfWeek; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (firstDayOfWeek < week) { | |
return week; | |
} else { | |
return lastDayOfWeek; | |
} | |
if (lastDayOfWeek < week) { | |
return week; | |
} else { | |
return lastDayOfWeek; | |
} |
if (firstDayOfWeek < week) { | ||
return week; | ||
} else { | ||
return middleDayOfWeek; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (firstDayOfWeek < week) { | |
return week; | |
} else { | |
return middleDayOfWeek; | |
} | |
if (middleDayOfWeek < week) { | |
return week; | |
} else { | |
return middleDayOfWeek; | |
} |
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]'.