aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
Diffstat (limited to 'feed')
-rw-r--r--feed/time.go4
1 files changed, 4 insertions, 0 deletions
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()
+}