Skip to content

Commit

Permalink
refs #94 Handle blank timezones better.
Browse files Browse the repository at this point in the history
  • Loading branch information
volontarian committed Oct 29, 2015
1 parent f0eed10 commit 25fad1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/voluntary/v1/base_controller.rb
Expand Up @@ -80,7 +80,7 @@ def response_with_standard(format = nil, error = nil)
private

def set_timezone
Time.zone = current_user.try(:timezone) || 'UTC'
Time.zone = current_user.try(:timezone).present? ? current_user.timezone : 'UTC'
end

def current_namespace
Expand Down

0 comments on commit 25fad1a

Please sign in to comment.