From 5daacc1b3341739005e863ce5714c6cca8459e51 Mon Sep 17 00:00:00 2001 From: Woyten Date: Fri, 9 Jun 2017 21:58:43 +0200 Subject: [PATCH] Fix time example --- src/examples/time.elm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)