修改了一些bug

This commit is contained in:
astaxie
2013-01-18 13:50:09 +08:00
parent f3e92eb55c
commit 4b480b52de

View File

@@ -171,7 +171,7 @@ Go语言中通过net包中的`DialTCP`函数来建立一个TCP连接并返回
if err != nil {
continue
}
daytime := time.LocalTime().String()
daytime := time.Now().String()
conn.Write([]byte(daytime)) // don't care about return value
conn.Close() // we're finished with this client
}