Skip to content

Use timezone-aware campaign start time#438

Merged
corsacca merged 1 commit into
DiscipleTools:masterfrom
micahmills:bugfix-prayer-fuel-start-timezone-shift
May 4, 2026
Merged

Use timezone-aware campaign start time#438
corsacca merged 1 commit into
DiscipleTools:masterfrom
micahmills:bugfix-prayer-fuel-start-timezone-shift

Conversation

@micahmills
Copy link
Copy Markdown
Contributor

DT_Campaign_Fuel::date_of_campaign_day now uses DT_Time_Utilities::start_of_campaign_with_timezone($campaign['ID']) instead of reading $campaign['start_date']['timestamp'] directly. This makes campaign day calculations respect the campaign's timezone and avoids incorrect day offsets when the campaign timezone differs from the server timezone.

DT_Campaign_Fuel::date_of_campaign_day now uses DT_Time_Utilities::start_of_campaign_with_timezone($campaign['ID']) instead of reading $campaign['start_date']['timestamp'] directly. This makes campaign day calculations respect the campaign's timezone and avoids incorrect day offsets when the campaign timezone differs from the server timezone.
@corsacca corsacca merged commit 6991413 into DiscipleTools:master May 4, 2026
2 checks passed
@corsacca
Copy link
Copy Markdown
Member

corsacca commented May 4, 2026

Thanks @micahmills!

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.

2 participants