Don't jump to conclusions. Examine all the evidence. For instance, consider the local time zone.
Package time
import "time"
func Unix
func Unix(sec int64, nsec int64) Time
Unix returns the local Time corresponding to the given Unix time, sec
seconds and nsec nanoseconds since January 1, 1970 UTC.
For example,
package main
import (
"fmt"
"runtime"
"strconv"
"time"
)
func main() {
i, err := strconv.ParseInt("1405544146", 10, 64)
if err != nil {
panic(err)
}
t := time.Unix(i, 0)
fmt.Println(t)
fmt.Println(t.Format(time.RFC3339))
fmt.Println(time.RFC3339)
fmt.Println(runtime.GOOS, runtime.GOARCH, runtime.Version())
}
Playground: https://play.golang.org/p/UH6o57YckiV
Output (Playground):
2014-07-16 20:55:46 +0000 UTC
2014-07-16T20:55:46Z
2006-01-02T15:04:05Z07:00
nacl amd64p32 go1.12
Output (Linux):
2014-07-16 16:55:46 -0400 EDT
2014-07-16T16:55:46-04:00
2006-01-02T15:04:05Z07:00
linux amd64 devel +5b68cb65d3 Thu Mar 28 23:49:52 2019 +0000
Different time zones (UTC versus EDT) so different formatted dates and times.
In your examples you have 2014-07-16T20:55:46Z
and 2014-07-17T05:55:46+09:00
, different time zones so different formatted dates and times.