change table to references
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user