Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions asset/assets_vfsdata.go

Large diffs are not rendered by default.

70 changes: 2 additions & 68 deletions ui/app/src/Utils/Date.elm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module Utils.Date exposing
, parseDuration
, term
, timeDifference
, timeFormat
, timeFromString
, timeToString
, units
Expand Down Expand Up @@ -105,73 +104,8 @@ durationFormat duration =


dateTimeFormat : Posix -> String
dateTimeFormat time =
timeFormat time
++ ", "
++ String.fromInt (toYear utc time)
++ "-"
++ padWithZero (monthFormat (toMonth utc time))
++ "-"
++ padWithZero (toDay utc time)
++ " (UTC)"


timeFormat : Posix -> String
timeFormat time =
padWithZero (toHour utc time)
++ ":"
++ padWithZero (toMinute utc time)
++ ":"
++ padWithZero (toSecond utc time)


padWithZero : Int -> String
padWithZero n =
if n < 10 then
"0" ++ String.fromInt n

else
String.fromInt n


monthFormat : Month -> Int
monthFormat month =
case month of
Jan ->
1

Feb ->
2

Mar ->
3

Apr ->
4

May ->
5

Jun ->
6

Jul ->
7

Aug ->
8

Sep ->
9

Oct ->
10

Nov ->
11

Dec ->
12
dateTimeFormat =
Iso8601.fromTime


encode : Posix -> String
Expand Down