diff --git a/utils.go b/utils.go index f1953049..19e761f9 100644 --- a/utils.go +++ b/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) }