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)