     _.extend(plan, {title})
     @emitChange()
 
-  updateDueAt: (id, due_at=new moment()) ->
+  updateDueAt: (id, due_at=new Date()) ->
     plan = @_getPlan(id)
     _.extend(plan, {due_at: due_at.toISOString()})
     @emitChange()


  publish: (id) ->

  create: (due_at = new moment()) ->
    @_local[CREATE_KEY] = {
      due_at: due_at
    }

_ = require 'underscore'
{CrudConfig, makeSimpleStore, extendConfig} = require './helpers'

CREATE_KEY = "CREATING"
