PingCAP-QE / go-sqlsmith

go-sqlsmith is a port of sqlsmith
Apache License 2.0
35 stars 16 forks source link

*: fix min timestamp #8

Closed csuzhangxc closed 4 years ago

csuzhangxc commented 4 years ago

previously:

package main

import (
    "fmt"
    "time"
)

func main() {
    ts := time.Date(1970, 1, 0, 0, 0, 0, 0, time.UTC).Unix()
    fmt.Println("ts", ts)

    t := time.Unix(ts, 0).UTC()
    fmt.Println("t", t)
}
ts -86400
t 1969-12-31 00:00:00 +0000 UT
csuzhangxc commented 4 years ago

@mahjonp @you06 PTAL