Skip to content

Commit

Permalink
Fix: Ensure iso_time uses user TZ when tz_override is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and timopollmeier committed Nov 10, 2023
1 parent e0286c4 commit a32b624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ manage_create_sql_functions ()
" user_zone text;"
" BEGIN"
" user_zone :="
" coalesce ((SELECT current_setting ('gvmd.tz_override')),"
" coalesce (NULLIF((SELECT current_setting ('gvmd.tz_override')), ''),"
" (SELECT timezone FROM users"
" WHERE id = gvmd_user ()));"
" RETURN iso_time (seconds, user_zone);"
Expand Down

0 comments on commit a32b624

Please sign in to comment.