Skip to content

Commit

Permalink
[Golang][client] fix RFC-3339 date-time query param (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify authored and wing328 committed Jun 15, 2018
1 parent dbb44a1 commit a20f93b
Show file tree
Hide file tree
Showing 12 changed files with 652 additions and 676 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ func parameterToString(obj interface{}, collectionFormat string) string {

if reflect.TypeOf(obj).Kind() == reflect.Slice {
return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]")
} else if t, ok := obj.(time.Time); ok {
return t.Format(time.RFC3339)
}

return fmt.Sprintf("%v", obj)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0-SNAPSHOT
3.1.0-SNAPSHOT
Loading

0 comments on commit a20f93b

Please sign in to comment.