mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-12-20 02:11:23 +00:00
Fix: Expose formatTime
formatter instead for timezon support
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5c305cd887
commit
159edd485e
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue