Closed
Fix event date filtering for UTC-negative timezones + missing Google token injection for 19hz#65
Conversation
|
… 19hz and main map Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Google Maps JavaScript API errors and warnings
Fix event date filtering for UTC-negative timezones + missing Google token injection for 19hz
Mar 19, 2026
ProLoser
marked this pull request as ready for review
March 19, 2026 06:41
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.
The 19hz map showed 0 events when filtering by date because ISO date strings were parsed as UTC midnight, causing an off-by-one day error for users in UTC-negative timezones (San Francisco = UTC-7/UTC-8). Additionally,
__GOOGLE_TOKEN__was never injected into19hz/index.htmlduring deploy.Changes
Date filter timezone fix (
19hz/map.js,map.js): Parseevent.dateas local time to match how filter dates are already parsed:parseCSVDateISO string (19hz/map.js): Build the date string directly instead of viatoISOString(), which converts local midnight to UTC before formatting:Deploy workflow (
deploy.yml): Added19hz/index.htmlto the Google tokensedreplacement; removed redundant duplicate line for__APIFY_TOKEN__.Cache freshness (
19hz/map.js,map.js):isFresh(old = 86400)defaulted to 86.4 seconds, not 24 hours — changed to86400000.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.