Skip to content

Commit 08e703a

Browse files
committed
Use automatic timezone
1 parent baac7a6 commit 08e703a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ func main() {
3131
if *outPutFile {
3232
s.logFile, _ = os.OpenFile("results.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
3333
}
34-
location, _ := time.LoadLocation("Asia/Shanghai")
35-
s.Print(fmt.Sprint("Reality TLS Scanner running: ", *addrPtr, ":", *portPtr, " start scan at : ", time.Now().In(location).String()))
34+
s.Print(fmt.Sprint("Reality TLS Scanner running: ", *addrPtr, ":", *portPtr, " start scan at : ", time.Now().Format(time.RFC3339)))
3635
defer s.logFile.Close()
3736
s.Run()
3837
}

0 commit comments

Comments
 (0)