fix(#1701): Events page displays year for events scheduled to start or end at a future year
What
- Addition of event year text to events page (for events scheduled with any date not in the current year.
- Replaces https://github.com/python/pythondotorg/pull/1714.
Closes
- Fixes https://github.com/python/pythondotorg/issues/1701.
Good day everyone, I hope you're all doing well.
I initially worked on this issue (#1701) some time ago, and it was opened in 2020. The problem involved events with start or end dates that are not in the current year (i.e. not matching datetime.datetime.now().year on the server). These events were displayed without indicating the year, which could cause confusion for users.
While event names often include the year, displaying the year directly with the event dates on the frontend provides additional clarity and improves user experience by avoiding any ambiguity.
If possible, I'd appreciate a review of my pull request. I’m happy to answer any questions you may have and will do my best to clarify any details.
Thank you for your time, and I look forward to your feedback.
Best regards,
Godwin
After reviewing some other pull requests on the repo, I decided that adding screenshots of before and after would better give a visual summary of what has been done
Before:
After:
Thanks for your continued contributions, @alvindera97! Very much appreciated :)