mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 15:40:03 +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) {
|
func (m modStreamSchedule) executeContentTemplate(data *twitchStreamSchedule) (string, error) {
|
||||||
fns := sprig.FuncMap()
|
fns := sprig.FuncMap()
|
||||||
fns["localeStrftime"] = localeStrftime
|
fns["formatTime"] = m.formatTime
|
||||||
|
|
||||||
tpl, err := template.New("streamschedule").
|
tpl, err := template.New("streamschedule").
|
||||||
Funcs(fns).
|
Funcs(fns).
|
||||||
|
|
Loading…
Reference in a new issue