 
   # render days based on whether they are past or upcoming
   # past days do not allow adding of plans
-  renderDays: (calendarDuration, referenceDay) ->
-    referenceDay ?= moment()
+  renderDays: (calendarDuration, referenceDate) ->
+    referenceDate ?= moment(TimeStore.getNow())
 
     durationDays = calendarDuration.iterate('days')
     days = []

    while durationDays.hasNext()
      dayIter = durationDays.next()

      if dayIter.isAfter(referenceDay, 'day')

        modifiers =
          upcoming: true

    router: React.PropTypes.func

  getInitialState: ->
    date: @props.startDate or moment(TimeStore.getNow())
    activeAddDate: null

  setDate: (date) ->
