1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

ui: Parse POSIX millisecond date stamps

This commit is contained in:
James Hillyerd
2018-11-17 21:11:41 -08:00
parent cf265dbe2c
commit 019bd11309
3 changed files with 4 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ import Json.Decode as Decode exposing (..)
import Time exposing (Posix)
{-| Decode a POSIX milliseconds timestamp. Currently faked until backend API is updated.
{-| Decode a POSIX milliseconds timestamp.
-}
date : Decoder Posix
date =
succeed (Time.millisToPosix 0)
int |> andThen (Time.millisToPosix >> succeed)