mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Require a time zone when formatting date-times
This commit is contained in:
@ -11,6 +11,7 @@ module Messages.Comp.ItemDetail.ItemInfoHeader exposing
|
||||
, gb
|
||||
)
|
||||
|
||||
import Data.TimeZone exposing (TimeZone)
|
||||
import Messages.Basics
|
||||
import Messages.DateFormat as DF
|
||||
import Messages.UiLanguage
|
||||
@ -26,23 +27,23 @@ type alias Texts =
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
gb : TimeZone -> Texts
|
||||
gb tz =
|
||||
{ basics = Messages.Basics.gb
|
||||
, itemDate = "Item Date"
|
||||
, dueDate = "Due Date"
|
||||
, source = "Source"
|
||||
, new = "New"
|
||||
, formatDate = DF.formatDateLong Messages.UiLanguage.English
|
||||
, formatDate = DF.formatDateLong Messages.UiLanguage.English tz
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
de : TimeZone -> Texts
|
||||
de tz =
|
||||
{ basics = Messages.Basics.de
|
||||
, itemDate = "Datum"
|
||||
, dueDate = "Fälligkeitsdatum"
|
||||
, source = "Quelle"
|
||||
, new = "Neu"
|
||||
, formatDate = DF.formatDateLong Messages.UiLanguage.German
|
||||
, formatDate = DF.formatDateLong Messages.UiLanguage.German tz
|
||||
}
|
||||
|
Reference in New Issue
Block a user