From da0358b9ea871cc9b013d18ad124ca7f49854a01 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Mon, 11 Jan 2021 22:55:40 +0000 Subject: [PATCH] Format dates the way that God intended --- src/View/Common.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Common.elm b/src/View/Common.elm index e9a1a0f..02b5daa 100644 --- a/src/View/Common.elm +++ b/src/View/Common.elm @@ -14,7 +14,7 @@ module View.Common ) import Date -import Date.Extra.Config.Config_en_au as DateEn +import Date.Extra.Config.Config_en_us as DateEn import Date.Extra.Format as DateFormat import Html exposing (..) import Html.Attributes exposing (..) @@ -178,4 +178,4 @@ formatDate : String -> String formatDate dateString = Date.fromString dateString |> Result.withDefault (Date.fromTime 0) - |> DateFormat.format DateEn.config "%d/%m/%Y %H:%M" + |> DateFormat.format DateEn.config "%Y-%m-%d %H:%M"