diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-17 21:03:31 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-17 21:03:31 -0700 |
commit | 8aa3bcf5fd687ccc75e0567161c2c7f39fe3bd0f (patch) | |
tree | c62b824fa8766cd7a968c286277aca4342ba66d8 | |
parent | 5bd9f33df927c55448f08f2cc847c1b0432993f5 (diff) |
casting reflect value for Time input to Int() return, and formatting to string rather than immediately returning the string value
-rw-r--r-- | management/editor/elements.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go index dd04070..390d8df 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -47,7 +47,7 @@ func Timestamp(fieldName string, p interface{}, attrs map[string]string) []byte if val.Int() == 0 { data = "" } else { - data = val.String() + data = fmt.Sprintf("%d", val.Int()) } e := &element{ |