feat: don't allow without timezone

This commit is contained in:
Shivam Mishra
2026-03-05 14:34:03 +05:30
parent ea5a46ee0c
commit dfd92acd4a
2 changed files with 5 additions and 5 deletions
@@ -45,7 +45,7 @@ module V2::Reports::Concerns::RollupConditions
end
def timezone_matches_account?
return true if params[:timezone_offset].blank?
return false if params[:timezone_offset].blank?
offset_in_seconds = params[:timezone_offset].to_f * 3600
account_zone = ActiveSupport::TimeZone[account.reporting_timezone]