Fix date name formatting 1+ years in the future
Closes #850 (closed)
What does this MR do?
Adjust how time-formatting displays dates more than 1 year in the future, and slightly adjusts the shorter version to be more consistent.
How confident are you it won't break things if deployed?
100%.
How to test
- Create pickup date more than 1 year in the future
- Check how the date is displayed in the sidebar
- Cross-check the date of forum posts on the dashboard, which use the more compact display format that was slightly modified too.
Screenshots (if applicable)
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s)) -
Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Chris Oelmueller