mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Require a time zone when formatting date-times
This commit is contained in:
@ -11,6 +11,7 @@ module Messages.Comp.CustomFieldTable exposing
|
||||
, gb
|
||||
)
|
||||
|
||||
import Data.TimeZone exposing (TimeZone)
|
||||
import Messages.Basics
|
||||
import Messages.DateFormat as DF
|
||||
import Messages.UiLanguage
|
||||
@ -25,21 +26,21 @@ type alias Texts =
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
gb : TimeZone -> Texts
|
||||
gb tz =
|
||||
{ basics = Messages.Basics.gb
|
||||
, nameLabel = "Name/Label"
|
||||
, format = "Format"
|
||||
, usageCount = "#Usage"
|
||||
, formatDateShort = DF.formatDateShort Messages.UiLanguage.English
|
||||
, formatDateShort = DF.formatDateShort Messages.UiLanguage.English tz
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
de : TimeZone -> Texts
|
||||
de tz =
|
||||
{ basics = Messages.Basics.de
|
||||
, nameLabel = "Name/Label"
|
||||
, format = "Format"
|
||||
, usageCount = "#Nutzung"
|
||||
, formatDateShort = DF.formatDateShort Messages.UiLanguage.German
|
||||
, formatDateShort = DF.formatDateShort Messages.UiLanguage.German tz
|
||||
}
|
||||
|
Reference in New Issue
Block a user