python / pythondotorg

Source code for python.org
https://www.python.org
Apache License 2.0
1.52k stars 603 forks source link

Bug: Duplicate Scheduled Year String Appearing For Single Day Events Whose Scheduled Year String Is Rendered #2626

Open alvindera97 opened 1 month ago

alvindera97 commented 1 month ago

Describe the bug

What

For single day events (events that start and end on the same day) that require year string to be displayed [which are]:

The year string is rendered multiple times.

Here are a couple of examples

1. Past event scenario

image

2. Future event scenario

image

To Reproduce

Expected behavior

Addressing "If necessary"

URL to the issue

No response

Screenshots

No response

Browsers

Firefox, Chrome, Safari, Microsoft Edge, Other

Operating System

Linux

Browser Version

No response

Relevant log output

No response

Additional context

I've traced down the offending template logic: https://github.com/python/pythondotorg/blob/1bfeace44973dff8310f695ca15b40c277047cc7/templates/events/includes/time_tag.html#L1-L9

alvindera97 commented 1 month ago

https://github.com/python/pythondotorg/pull/2627 should close this issue.