Repository navigation
Parse multi-day Tito events - #763
Merged
Merged
Conversation
Queer East's In the Mist events run 4pm, October 21st to 8pm, October 22nd, which Tito renders with a date on both ends. The parser assumed a same-day range and failed on the start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014oHUvXMcpjGqjMk9dKyfxV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Transform failed (run):
Queer East currently lists two events that span two days,
queereast/in-the-mistandqueereast/traversing-the-mist. Tito renders their calendar text as:parseCalTextassumed a same-day range (2–4:15pm, February 21st, 2026), so it treated4pm, October 21stas a bare time, addedpmand threw. Because every transform job reads the ti.to source, this broke transforms for unrelated venues.Fix
When the start side carries its own date (contains a comma), parse it as a time plus date, taking the year from the end date. If that puts the start after the end (an event running over New Year), step back one year. Same-day ranges are parsed as before.
Checked by hand under
TZ=Europe/London:4pm, October 21st–8pm, October 22nd, 20262–4:15pm, February 21st, 202611pm, December 31st–2am, January 1st, 2027npm test -- sources/ti.to, ESLint and Prettier pass.Notes
🤖 Generated with Claude Code
https://claude.ai/code/session_014oHUvXMcpjGqjMk9dKyfxV
Generated by Claude Code