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:
parent
47f7f9884b
commit
e56e23e24f
2
utils.go
2
utils.go
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user