app/models/my_nagios/check.rb in my_nagios-0.0.19 vs app/models/my_nagios/check.rb in my_nagios-0.0.20

- old
+ new

@@ -4,10 +4,10 @@ enum status: [ :info, :success, :critical ] enum state: [ :completed, :running ] scope :enabled, -> { where(enabled: true) } - scope :not_snoozed, -> { where('`my_nagios_checks`.`snooze_for` <= NOW() OR `my_nagios_checks`.`snooze_for` IS NULL') } + scope :not_snoozed, -> { where('`my_nagios_checks`.`snooze_for` <= UTC_TIMESTAMP() OR `my_nagios_checks`.`snooze_for` IS NULL') } attr_accessor :additional_command_result INFO_STATES = ['AuthenticationFailed message', 'No such file or directory'] ERROR_STATES = ['!ruby/exception', 'packet_write_wait: Connection to UNKNOWN: Broken pipe']