lib/vue/stores/analytics.js in lesli_audit-0.3.0 vs lib/vue/stores/analytics.js in lesli_audit-0.4.0

- old
+ new

@@ -66,10 +66,13 @@ actions: { fetchVisits() { this.visitors.loading = true this.http.get(this.url.audit("analytics/visitors")).then(result => { - this.visitors.records = result.reverse() + this.visitors.records = result.map(record => { + record.date = this.date(record.date).date() + return record + }).reverse() }).finally(() => { this.visitors.loading = false }) },