Permalink
Browse files

Fix timezone issue that was breaking some views

  • Loading branch information...
1 parent 29f7173 commit 142c092bb84f87724a917a05861c0a134f6e38bc @kneath committed May 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/burndown/milestone.rb
@@ -15,13 +15,13 @@ class Milestone
has n, :milestone_events
def start_date
- activated_at
+ @@start_date ||= Date.parse(activated_at.to_s)
end
def end_date
due = due_on || Time.now.to_datetime
closed = closed_at || Time.now.to_datetime
- [due, closed].max
+ Date.parse([due, closed].max.to_s)
end
def past_due?

0 comments on commit 142c092

Please sign in to comment.