Skip to content

Commit

Permalink
Fix statement in flash message
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Nov 21, 2017
1 parent 6fbdbfa commit 191407c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ops_controller/diagnostics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def cu_repair_field_changed
def cu_repair
return unless load_edit("curepair_edit__new", "replace_cell__explorer")
if @edit[:new][:end_date].to_time < @edit[:new][:start_date].to_time
add_flash(_("End Date cannot be greater than Start Date"), :error)
add_flash(_("End Date cannot be earlier than Start Date"), :error)
else
# converting string to time, and then converting into user selected timezone
from = "#{@edit[:new][:start_date]} #{@edit[:new][:start_hour]}:#{@edit[:new][:start_min]}:00".to_time.in_time_zone(@edit[:new][:timezone])
Expand Down

0 comments on commit 191407c

Please sign in to comment.