From 672c6e67ec15b0f036543162cafb2f29f0737e6c Mon Sep 17 00:00:00 2001 From: blank X Date: Tue, 10 Aug 2021 22:19:04 +0700 Subject: [PATCH] Get the date for from the newest entry --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 35508f7..ac37812 100644 --- a/main.go +++ b/main.go @@ -330,7 +330,7 @@ func main() { if len(aw.Items) == 0 { feed.Updated = time.Now().Format(time.RFC3339) } else { - feed.Updated = aw.Items[0].Date.Format(time.RFC3339) + feed.Updated = aw.Items[len(aw.Items) - 1].Date.Format(time.RFC3339) } for i := len(aw.Items); i != 0; i-- { item := aw.Items[i - 1]