format the date

This commit is contained in:
Asim Aslam
2021-05-20 14:57:28 +01:00
parent feee6f3ccd
commit d42eaad1d2
3 changed files with 6 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ func (e *Rss) fetch(f *pb.Feed) error {
Feed: f.Url,
Link: item.Link,
Content: content,
Date: item.Date.Unix(),
Date: item.Date.Format(time.RFC3339Nano),
})
if err != nil {
return fmt.Errorf("Error saving item: %v", err)