1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-25 01:12:30 +00:00
mobilizon/lib
setop 01bdd7b344 fix compare begin and end dates
this bug prevent from creating an event with the day of month of the begin date greater than the day of month of the end date, event if end date is effectively greater than begin date.

for example, if the begin date is '2020-04-28' and end date is '2020-05-13', these dates are valid but because 28 > 13, the validation fails.

this is better explained in this article ["Never compare dates in Elixir using < or >"](https://blog.leif.io/never-use-to-compare-dates/).

using Date.compare, as proposed in this PR fix the issue.
2020-04-03 23:37:56 +02:00
..
federation Add ability to add message for participation and improve participation 2020-03-06 09:00:48 +01:00
graphql Add ability to add message for participation and improve participation 2020-03-06 09:00:48 +01:00
mix/tasks/mobilizon
mobilizon fix compare begin and end dates 2020-04-03 23:37:56 +02:00
service Blind key rotation and stale duration for profiles 2020-02-14 18:21:18 +01:00
web Validate Date header in HTTPSignatures 2020-02-14 09:22:17 +01:00
mobilizon.ex Blind key rotation and stale duration for profiles 2020-02-14 18:21:18 +01:00