From f54b005963f9d279a38d24ca7c8893d3ba3f4183 Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 14 Apr 2023 02:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index fa247a4..1717218 100644 --- a/main.go +++ b/main.go @@ -64,6 +64,7 @@ func zhihuDaily(w http.ResponseWriter, req *http.Request) { } func tjxz(w http.ResponseWriter, r *http.Request) { + io.WriteString(w, fetch("https://feedx.best/rss/tjxz.xml", func(s string) string { return filterItem(s, time.Now().Day(), 0) })) @@ -85,6 +86,7 @@ func main() { if port == "" { port = ":80" } + time.Local = time.FixedZone("CST", 3600*8) http.HandleFunc("/pentitugua", penti) http.HandleFunc("/zhihuDaily", zhihuDaily) http.HandleFunc("/tjxz", tjxz)