Fix: Expose formatTime formatter instead for timezon support

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-12-06 18:56:21 +01:00
parent 5c305cd887
commit 159edd485e
Signed by: luzifer
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -213,7 +213,7 @@ func (m modStreamSchedule) assembleEmbed(data *twitchStreamSchedule) *discordgo.
func (m modStreamSchedule) executeContentTemplate(data *twitchStreamSchedule) (string, error) {
fns := sprig.FuncMap()
fns["localeStrftime"] = localeStrftime
fns["formatTime"] = m.formatTime
tpl, err := template.New("streamschedule").
Funcs(fns).