Skip to content

Commit 11593a2

Browse files
committed
fixed report helper to account for user account timezone
fixed PS-534 Change-Id: I8b5233d80edf179337efdb23e33e959bfda1c72d Reviewed-on: https://gerrit.instructure.com/24504 Reviewed-by: Rob Orton <rob@instructure.com> Tested-by: Jenkins <jenkins@instructure.com> Product-Review: Brandon Broschinsky <brandonbr@instructure.com> QA-Review: Brandon Broschinsky <brandonbr@instructure.com>
1 parent 60ce5f3 commit 11593a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vendor/plugins/account_reports/lib/canvas/account_reports/report_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def default_timezone_format(datetime, account=root_account)
4343
# it will then format the datetime using the given format string
4444
def timezone_strftime(datetime, format)
4545
if datetime = parse_utc_string(datetime)
46-
datetime.strftime(format)
46+
(datetime.in_time_zone(account.default_time_zone)).strftime(format)
4747
end
4848
end
4949

0 commit comments

Comments
 (0)