Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // d == Mon Jan 04 2010 00:00:00 GMT+0700 (ICT)
- // component successfully renders
- const xAccessor = d => d.date;
- // d == "2018-01-12T13:24:59.999Z"
- // component fails to render
- const xAccessor = function(d) {
- var prevDate = new Date(d.date)
- return prevDate.toGMTString();
- };
- // Console gives me this when I try to convert not using fat arrow syntax
- // new Date("2018-01-12T13:24:59.999Z")
- // Fri Jan 12 2018 20:24:59 GMT+0700 (ICT)
Add Comment
Please, Sign In to add comment