From 479aa477c7a7d1711c3266fe626fb5ed544ac64c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 19 Feb 2022 09:34:01 -0500 Subject: feed/time.go: add MarshalText() --- feed/time.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'feed') diff --git a/feed/time.go b/feed/time.go index 6eb5d37..89e6a56 100644 --- a/feed/time.go +++ b/feed/time.go @@ -42,3 +42,7 @@ func (me *Time) UnmarshalJSON(b []byte) error { return nil } +// Marshal time. +func (me *Time) MarshalText() ([]byte, error) { + return time.Time(*me).MarshalText() +} -- cgit v1.2.3