1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-09-02 13:47:00 +02:00

add newline before return

This commit is contained in:
Deon Thomas 2022-05-10 15:51:06 -04:00
parent 47f7f9884b
commit e56e23e24f
No known key found for this signature in database
GPG Key ID: 0FF7DAE12CA62D67

View File

@ -333,10 +333,12 @@ func IsStringInSlice(slice []string, str string) bool {
func NowFromTZEnv() time.Time {
location, _ := time.LoadLocation(viper.GetString("TZ"))
now := time.Now().In(location)
return now
}
func TimeFromTZEnv(input time.Time) time.Time {
location, _ := time.LoadLocation(viper.GetString("TZ"))
return input.In(location)
}