Opened 3 days ago
Last modified 3 days ago
#24877 new defect
Warn against future check_dates
| Reported by: | CjMalone | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core validator | Version: | |
| Keywords: | date mapcss | Cc: |
Description
Sometimes check_date gets added with a value in the future, typically this is the wrong year, but also sometimes with month/day being misordered, and other times, it seems just random. https://www.openstreetmap.org/changeset/188030943
I've looked at added a future date check to my validation rule, but it seems MapCSS can't do date checks? https://josm.openstreetmap.de/wiki/Rules/CheckDate
It would be nice for this to either be implementable in MapCSS, or implemented in the Java validators.



See also:
end_date: #22412I guess there are some more tags which could profit from a proper date format test. (eg. 2026-02-29, 2028-02-29, 2100-02-29: only the middle one is valid)