Skip to content

Conversation

@AjobK
Copy link
Member

@AjobK AjobK commented May 12, 2025

During the Indico Workshop 2025 two issues regarding the PDF timetable were mentioned.

  1. The color of the session-less contributions was unfitting. Now it's a classic blue.
  2. The AM/PM markers were inconsistent. Some places showed AM/PM while others did not.

Screenshot from 2025-05-13 11-27-06

Extra context:

It seems like babel does not adjust the time to AM/PM based on locale. Formatting time does, but specifically the format_interval function does not. However, this is more related to the Unicode markup ruleset in babel.
https://unicode.org/reports/tr35/tr35-dates.html#element-intervalformats

For now it is toggled manually, however in the future it might be something worth addressing with babel itself.

@AjobK AjobK force-pushed the pdf-timetable-fixes branch from 65250cd to 82f538e Compare May 13, 2025 09:29
@tomasr8 tomasr8 self-requested a review May 13, 2025 21:19
@AjobK AjobK force-pushed the pdf-timetable-fixes branch from 82f538e to c959a8b Compare June 26, 2025 14:22
@AjobK AjobK requested review from ThiefMaster and tomasr8 June 26, 2025 14:29
@ThiefMaster
Copy link
Member

Can you add a changelog entry? LGTM otherwise

Copy link
Member

@tomasr8 tomasr8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit disappointing that format_interval isn't more flexible.. anyway this is probably the easiest solution we can come up with for now.

Thanks for the investigation @AjobK!

@ThiefMaster ThiefMaster merged commit 1fd92f4 into indico:master Jun 26, 2025
11 checks passed
@ThiefMaster ThiefMaster added this to the v3.3 milestone Jun 26, 2025
@AjobK AjobK deleted the pdf-timetable-fixes branch July 1, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants