diff --git a/pkg/tomlext/toml_v2_util.go b/pkg/tomlext/toml_v2_util.go index 586b17c4c..e99a84e75 100644 --- a/pkg/tomlext/toml_v2_util.go +++ b/pkg/tomlext/toml_v2_util.go @@ -29,6 +29,10 @@ func (d *Duration) UnmarshalText(b []byte) error { return nil } +func (d Duration) MarshalText() (text []byte, err error) { + return []byte(time.Duration(d).String()), nil +} + func ToStdTime(d Duration) time.Duration { return time.Duration(d) }