Closed acomito closed 6 years ago
So, this is related to the javascript dates I'm using on my X axis. It seems when debugging is on, new Date is working differently then when debugging is off. Specially, this works:
new Date("2018-05-01")
This does not work:
new Date("2018-05-01 00:00")
My Issue is that new Date("2018-05-01")
is returning the wrong day because there is no time included... see this. So really I need to use new Date("2018-05-01 00:00")
if I can-- or find an alternative.
UPDATE: it seems I can just use moment.js like moment("2018-05-01")
yup, when debugging is on you use chromes V8 js engine which might treat some things differently
What is the problem?
This is a really strange one. If I run my code with debug js remotely turned on, I see:
and when debug js remotely is off, or when I'm running in production, I see this:
Same exact data. Same exact code. Same exact phone/simulator. Really strange.
I'm going to try and isolate the code for a reproduction, and will update this post here as I go. In the mean time, here's some of my stats:
Further Reading: