Skip to content

Business intelligence made simple

Fixed invalid date

Andrew Kane8173499769e0
diff --git a/app/views/blazer/_variables.html.erb b/app/views/blazer/_variables.html.erb
index ecfa5d42..443d8b3b 100644
--- a/app/views/blazer/_variables.html.erb
+++ b/app/views/blazer/_variables.html.erb
@@ -42,7 +42,7 @@
singleDatePicker: true,
locale: {format: format},
autoUpdateInput: false,
- startDate: input.val().length > 0 ? moment.tz(input.val(), timeZone) : null
+ startDate: input.val().length > 0 ? moment.tz(input.val(), timeZone) : now
})
// hack to start with empty date
datePicker.on("apply.daterangepicker", function(ev, picker) {