summaryrefslogtreecommitdiff
path: root/management/editor/elements.go
diff options
context:
space:
mode:
Diffstat (limited to 'management/editor/elements.go')
-rw-r--r--management/editor/elements.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go
index b06049d..dd04070 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -37,11 +37,11 @@ func Textarea(fieldName string, p interface{}, attrs map[string]string) []byte {
return domElement(e)
}
-// Time returns the []byte of an <input> HTML element with a label.
+// Timestamp returns the []byte of an <input> HTML element with a label.
// IMPORTANT:
// The `fieldName` argument will cause a panic if it is not exactly the string
// form of the struct field that this editor input is representing
-func Time(fieldName string, p interface{}, attrs map[string]string) []byte {
+func Timestamp(fieldName string, p interface{}, attrs map[string]string) []byte {
var data string
val := valueFromStructField(fieldName, p)
if val.Int() == 0 {