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

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

CREATE_KEY = "CREATING"

    _.extend(plan, {title})
    @emitChange()

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