I've observed that if you create an activity with a timestamp like this:
2010-09-17T14:27:37.860Z
It will be stored like this:
2010-09-17T14:27:37.860
Note the missing time zone code. From what I can tell, this violates the ISO standard, and it definitely produces complications in JavaScript with the Date object. I have always had to map the timestamp back to the correct timestamp by adding a Z character, which is kind of crazy.
Here's some code that hopefully illustrates why this is a problem:
const now = new Date('2010-09-17T14:27:37.860Z');
const notNow = new Date('2010-09-17T14:27:37.860');
console.log(now);
// Fri Sep 17 2010 09:27:37 GMT-0500 (Central Daylight Time)
console.log(notNow);
// Fri Sep 17 2010 14:27:37 GMT-0500 (Central Daylight Time)
What's going on here? Am I misunderstanding something or is this a bug with Stream?