Commit 5fbd3f7
authored
Fix Date param binding (#628)
When `BindStyledParameterWithLocation` is used with a Date param,
`UnmarshalText` of the `Date`'s underlying `time.Time` was called.
This would result in an error, because the `DateFormat` `2016-01-02`
is not used by `time.Time`'s `UnmarshalText`. This commit adds an
override to `Date` to make the binding work.1 parent 256e3b6 commit 5fbd3f7
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments