Skip to content

Commit

Permalink
debug Travis ..
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Nov 19, 2011
1 parent fbe92a0 commit 80d11cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/models/core/task.rb
Expand Up @@ -229,12 +229,16 @@ def notify_assignee
#----------------------------------------------------------------------------
def specific_time
parse_calendar_date if self.bucket == "specific_time"
rescue
errors.add(:calendar, :invalid_date)
#rescue
#errors.add(:calendar, :invalid_date)
end

#----------------------------------------------------------------------------
def parse_calendar_date
puts "task_calendar_with_time: " << Setting.task_calendar_with_time
puts "locale: " << I18n.locale
puts "time fmt: " << I18n.t('time.formats.mmddyyyy_hhmm')
puts "date fmt: " << I18n.t('date.formats.mmddyyyy')
Time.strptime(self.calendar, I18n.t(Setting.task_calendar_with_time ? 'time.formats.mmddyyyy_hhmm' : 'date.formats.mmddyyyy')).utc
end
end
Expand Down

0 comments on commit 80d11cc

Please sign in to comment.