Use automatic timezone

This commit is contained in:
yuhan6665
2023-05-12 21:27:23 -04:00
parent baac7a6914
commit 08e703a95e
+1 -2
View File
@@ -31,8 +31,7 @@ func main() {
if *outPutFile {
s.logFile, _ = os.OpenFile("results.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
}
location, _ := time.LoadLocation("Asia/Shanghai")
s.Print(fmt.Sprint("Reality TLS Scanner running: ", *addrPtr, ":", *portPtr, " start scan at : ", time.Now().In(location).String()))
s.Print(fmt.Sprint("Reality TLS Scanner running: ", *addrPtr, ":", *portPtr, " start scan at : ", time.Now().Format(time.RFC3339)))
defer s.logFile.Close()
s.Run()
}