mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-01 23:28:42 +00:00
Update go-github library
This commit is contained in:
4
vendor/github.com/google/go-github/github/timestamp.go
generated
vendored
4
vendor/github.com/google/go-github/github/timestamp.go
generated
vendored
@@ -28,9 +28,9 @@ func (t *Timestamp) UnmarshalJSON(data []byte) (err error) {
|
||||
str := string(data)
|
||||
i, err := strconv.ParseInt(str, 10, 64)
|
||||
if err == nil {
|
||||
(*t).Time = time.Unix(i, 0)
|
||||
t.Time = time.Unix(i, 0)
|
||||
} else {
|
||||
(*t).Time, err = time.Parse(`"`+time.RFC3339+`"`, str)
|
||||
t.Time, err = time.Parse(`"`+time.RFC3339+`"`, str)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user