diff --git a/helper.go b/helper.go index 7e0bc13..92d8e8b 100755 --- a/helper.go +++ b/helper.go @@ -103,9 +103,6 @@ func format2layout(format string) string { // gets a Location instance by a timezone string. // 通过时区获取 Location 实例 func getLocationByTimezone(timezone string) (*time.Location, error) { - if timezone == "" { - timezone = defaultTimezone - } loc, err := time.LoadLocation(timezone) if err != nil { err = invalidTimezoneError(timezone)