diff --git a/src/examples/time.elm b/src/examples/time.elm index 2b90526b6..ea8a44dff 100644 --- a/src/examples/time.elm +++ b/src/examples/time.elm @@ -4,7 +4,8 @@ import Html exposing (Html) import Svg exposing (..) import Svg.Attributes exposing (..) -import Time exposing (Time, second) +import Time exposing (Time, now, second) +import Task @@ -26,7 +27,7 @@ type alias Model = Time init : (Model, Cmd Msg) init = - (0, Cmd.none) + (0, Task.perform Tick now)