Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix timezone issue that was breaking some views

  • Loading branch information...
commit 142c092bb84f87724a917a05861c0a134f6e38bc 1 parent 29f7173
Kyle Neath authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/burndown/milestone.rb
4 lib/burndown/milestone.rb
@@ -15,13 +15,13 @@ class Milestone
15 15 has n, :milestone_events
16 16
17 17 def start_date
18   - activated_at
  18 + @@start_date ||= Date.parse(activated_at.to_s)
19 19 end
20 20
21 21 def end_date
22 22 due = due_on || Time.now.to_datetime
23 23 closed = closed_at || Time.now.to_datetime
24   - [due, closed].max
  24 + Date.parse([due, closed].max.to_s)
25 25 end
26 26
27 27 def past_due?

0 comments on commit 142c092

Please sign in to comment.
Something went wrong with that request. Please try again.