aboutsummaryrefslogtreecommitdiffhomepage
path: root/common/htime/time.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/htime/time.go')
-rw-r--r--common/htime/time.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/htime/time.go b/common/htime/time.go
index 9ab249d38..552608b6f 100644
--- a/common/htime/time.go
+++ b/common/htime/time.go
@@ -134,7 +134,7 @@ func (f TimeFormatter) Format(t time.Time, layout string) string {
return s
}
-func ToTimeInDefaultLocationE(i interface{}, location *time.Location) (tim time.Time, err error) {
+func ToTimeInDefaultLocationE(i any, location *time.Location) (tim time.Time, err error) {
switch vv := i.(type) {
case toml.LocalDate:
return vv.AsTime(location), nil