From 159edd485ebd9b11e45cef9f3d5a834138cfd32d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 6 Dec 2022 18:56:21 +0100 Subject: [PATCH] Fix: Expose `formatTime` formatter instead for timezon support Signed-off-by: Knut Ahlers --- mod_streamSchedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_streamSchedule.go b/mod_streamSchedule.go index 3935ddb..0d2d889 100644 --- a/mod_streamSchedule.go +++ b/mod_streamSchedule.go @@ -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).