Skip to content

Fixes fraction of hours on events#92

Merged
samcunliffe merged 2 commits intomainfrom
fix-events-times
Feb 11, 2026
Merged

Fixes fraction of hours on events#92
samcunliffe merged 2 commits intomainfrom
fix-events-times

Conversation

@dpshelio
Copy link
Member

Events with a fraction number of hours are not showing properly.

This is due to the fact that the date filter doesn't like a float number of seconds, and we were getting xxx.0 as a result of multiplying hours for 3,600. floor-ing it solves this problem.

It turns out that `date` filter doesn't like float seconds, and it fails
to convert it to any date format.
@dpshelio dpshelio requested a review from samcunliffe February 11, 2026 11:48
Copy link
Member

@samcunliffe samcunliffe left a comment

Choose a reason for hiding this comment

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

Image

Tested locally, and works.

@samcunliffe samcunliffe added bug Something isn't working website Something related to the Open Source @ UCL website. labels Feb 11, 2026
@samcunliffe samcunliffe merged commit d0bbe05 into main Feb 11, 2026
3 of 5 checks passed
@samcunliffe samcunliffe deleted the fix-events-times branch February 11, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working website Something related to the Open Source @ UCL website.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants