Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
- cloud.google.com/go: nothing of note.
- github.com/cockroachdb/c-jemalloc:
  - Update upstream to 4.4.0 (cockroachdb/c-jemalloc@910bc3a)
- github.com/cockroachdb/cmux: nothing of note.
- github.com/coreos/etcd: nothing of note.
- github.com/elastic/gosigar: nothing of note.
- github.com/gogo/protobuf:
  - Allow usage of message types with customtype (gogo/protobuf@f9114da)
- github.com/golang/protobuf: nothing of note.
- github.com/google/go-github: nothing of note.
- github.com/grpc-ecosystem/grpc-gateway: nothing of note.
- github.com/lib/pq:
  - Use space to separate date and time portions of Time literals (lib/pq@8af01c1)
- github.com/lightstep/lightstep-tracer-go:
  - Remove vendor directory (lightstep/lightstep-tracer-go@70a2e8a)
- github.com/opentracing/opentracing-go:
  - Avoid panic marshaling nil error (opentracing/opentracing-go@5e5abf8)
- github.com/prometheus/common: nothing of note.
- golang.org/x/net: nothing of note.
- golang.org/x/tools: nothing of note.
- google.golang.org/grpc:
  - Add stats (grpc/grpc-go#961)
  - Add transport tap (grpc/grpc-go#968)
  - Add FailOnNonTempDialError (grpc/grpc-go#974 & grpc/grpc-go#985)
- honnef.co/go/staticcheck: nothing of note.
- honnef.co/go/unused: nothing of note.
  • Loading branch information
tamird committed Jan 9, 2017
1 parent 5b3ccd0 commit 53d2079
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,12 @@ func formatTs(t time.Time, offset *time.Location, tmp []byte) (b []byte) {
// we don't support but Postgres does, add them here. Then create an integration
// test for the driver and add a case to TestParseTs.
func parseTs(str string) (time.Time, error) {
// RFC3339Nano is sent by github.com/lib/pq (go).
// See https://github.com/lib/pq/blob/8df6253/encode.go#L480.
if ts, err := time.Parse("2006-01-02 15:04:05.999999999Z07:00", str); err == nil {
return ts, nil
}

// See https://github.com/cockroachdb/pq/blob/44a6473/encode.go#L470.
if ts, err := time.Parse(time.RFC3339Nano, str); err == nil {
return ts, nil
}
Expand Down

0 comments on commit 53d2079

Please sign in to comment.