       allSteps.length
 
     isTaskPastDue: (taskId) ->
-      task = @_get(taskId)
-      moment(TimeStore.getNow()).isAfter(task.due_at)
+      Durations.isPastDue( @_get(taskId) )
 
     isPractice: (taskId) ->
       practices = [


extendConfig(TaskConfig, new CrudConfig())
{actions, store} = makeSimpleStore(TaskConfig)
# Extend the exports with the actual implementation.  The actual export took place at the top of the file
_.extend(module.exports, {TaskActions:actions, TaskStore:store})

moment = require 'moment'
flux = require 'flux-react'

Durations = require '../helpers/durations'
{CrudConfig, makeSimpleStore, extendConfig} = require './helpers'
{TaskStepStore} = require './task-step'

getSteps = (steps) ->
