mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 23:25:31 +08:00
You are my sunshine, my only sunshine,
You make me happy when skies are grey You never know, Hound, how much I love you Please don't take my Hound away
This commit is contained in:
parent
9227ea5854
commit
ec7b7ffe08
1 changed files with 2 additions and 1 deletions
|
@ -397,7 +397,8 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def time_zone_check
|
||||
if settings[:time_zone].nil? or ActiveSupport::TimeZone.new(settings[:time_zone]).nil?
|
||||
if time_zone.nil? ||
|
||||
ActiveSupport::TimeZone.new(time_zone).nil?
|
||||
errors.add(:time_zone)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue