We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a00962 commit 03b4637Copy full SHA for 03b4637
app/controllers/application_controller.rb
@@ -60,6 +60,6 @@ def #{s}!(redirect_url: nil)
60
61
private
62
def set_time_zone
63
- Time.zone = current_user.time_zone if current_user and current_user.time_zone.present?
+ Time.zone = current_user.time_zone if current_user&.time_zone&.present?
64
end
65
0 commit comments