From cb8abfefc88b82e12be8b5b370573e3648da9c03 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 3 Nov 2016 23:38:01 -0700 Subject: test for unescaping string in js map --- system/api/analytics/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/api/analytics/init.go') diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index 58f131d..d6735fb 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -162,7 +162,7 @@ CHECK_REQUEST: for j := range times { // format times[j] (time.Time) into a MM/DD format for dates - dates[j] = []byte(times[j].Format("01/02")) + dates[j] = json.RawMessage(times[j].Format("01/02")) // if on today, there will be no next iteration to set values for // day prior so all valid requests belong to today -- cgit v1.2.3