change table to references

This commit is contained in:
Adrian Zürcher
2025-11-20 10:40:56 +01:00
parent 4a469d1fd4
commit fe194754b1
14 changed files with 101 additions and 168 deletions

View File

@@ -1,6 +1,7 @@
package utils
import (
"fmt"
"net/mail"
"time"
)
@@ -25,3 +26,11 @@ func IsValidBirthday(birthday string) bool {
}
return false
}
func GetCurrentTime(loc *time.Location) string {
return time.Now().In(loc).Format("2006-01-02 15:04:05")
}
func GetCurrentDay(loc *time.Location) string {
return fmt.Sprint(time.Now().In(loc).Weekday())
}