View Issue Details

IDProjectCategoryView StatusLast Update
6154Composrcalendarpublic2025-02-26 23:59
ReporterPDStig Assigned ToChris Graham  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Summary6154: calendar_matches: Incorrect time zone conversions
DescriptionThe calendar_matches function is not correctly calculating events based off of the provided user times. For some reason it is assuming UTC.

I am unable to fix this. Realtime rain for calendar events temporarily disabled until this is fixed.
TagsRoadmap: v11
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2025-02-26 23:59

administrator   ~9823

I figured out the issue. It wasn't calendar_matches; it was the realtime_rain hook. The hook was using the wrong calendar_matches array index for determining timestamp. Additionally, $from and $to needed to be converted from UTC (which is how it is passed through AJAX) to user time before being passed into calendar_matches.

Issue History

Date Modified Username Field Change
2025-02-26 21:17 PDStig New Issue
2025-02-26 21:17 PDStig Status Not Assigned => Assigned
2025-02-26 21:17 PDStig Assigned To => Chris Graham
2025-02-26 21:17 PDStig Tag Attached: Roadmap: v11
2025-02-26 23:59 PDStig Status Assigned => Resolved
2025-02-26 23:59 PDStig Resolution open => fixed
2025-02-26 23:59 PDStig Note Added: 0009823