时区
This commit is contained in:
parent
ddd4bc86f3
commit
f54b005963
2
main.go
2
main.go
|
@ -64,6 +64,7 @@ func zhihuDaily(w http.ResponseWriter, req *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func tjxz(w http.ResponseWriter, r *http.Request) {
|
func tjxz(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
io.WriteString(w, fetch("https://feedx.best/rss/tjxz.xml", func(s string) string {
|
io.WriteString(w, fetch("https://feedx.best/rss/tjxz.xml", func(s string) string {
|
||||||
return filterItem(s, time.Now().Day(), 0)
|
return filterItem(s, time.Now().Day(), 0)
|
||||||
}))
|
}))
|
||||||
|
@ -85,6 +86,7 @@ func main() {
|
||||||
if port == "" {
|
if port == "" {
|
||||||
port = ":80"
|
port = ":80"
|
||||||
}
|
}
|
||||||
|
time.Local = time.FixedZone("CST", 3600*8)
|
||||||
http.HandleFunc("/pentitugua", penti)
|
http.HandleFunc("/pentitugua", penti)
|
||||||
http.HandleFunc("/zhihuDaily", zhihuDaily)
|
http.HandleFunc("/zhihuDaily", zhihuDaily)
|
||||||
http.HandleFunc("/tjxz", tjxz)
|
http.HandleFunc("/tjxz", tjxz)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user