changeset 1548:ccf4fc8a6402

Import queue: Give milliseconds in JSON output, too.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 10 Dec 2018 16:49:34 +0100
parents d4b7a6d054cd
children b03db5726ca5
files pkg/models/import.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/models/import.go	Mon Dec 10 15:55:10 2018 +0100
+++ b/pkg/models/import.go	Mon Dec 10 16:49:34 2018 +0100
@@ -61,7 +61,7 @@
 }
 
 func (it ImportTime) MarshalJSON() ([]byte, error) {
-	return json.Marshal(it.Format("2006-01-02T15:04:05"))
+	return json.Marshal(it.Format("2006-01-02T15:04:05.000"))
 }
 
 func (it *ImportTime) Scan(x interface{}) error {