summaryrefslogtreecommitdiff
path: root/system/api/analytics
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 23:29:12 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 23:29:12 -0700
commit0958427c83e80c32cbea983fd678a2ea243955da (patch)
tree98d940a3401d818b2dc4196afe7b02605762e697 /system/api/analytics
parente648374283b107c907246bc62bf22a06ad352158 (diff)
testing fix for str format of time and dates marshalling
Diffstat (limited to 'system/api/analytics')
-rw-r--r--system/api/analytics/init.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go
index 2368b2b..1e0d3ba 100644
--- a/system/api/analytics/init.go
+++ b/system/api/analytics/init.go
@@ -4,6 +4,7 @@
package analytics
import (
+ "fmt"
"log"
"net/http"
"strings"
@@ -162,7 +163,7 @@ CHECK_REQUEST:
for j := range times {
// format times[j] (time.Time) into a MM/DD format for dates
- dates[j] = times[j].Format(`01/02`)
+ dates[j] = 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
@@ -222,6 +223,8 @@ CHECK_REQUEST:
return nil, err
}
+ fmt.Println(dates)
+
return map[string]string{
"dates": string(jsDates),
"unique": string(jsUnique),