Change Plotly default behaviour for plotting datetimes?

This is a really old question, but bumping just in case there is an update. I want users to see the time that sensor data was collected, not the time that it happened to be in a different part of the world.

My failure was trying to pass plotly the data as milliseconds since the UTC epoch. It seems that plotly somehow finds the timezone of the browsers computer and subtracts that timezone so that, say, 1764247200000 displays as a different time depending on where the user lives.

If I convert the milliseconds to strings, however, e.g. “2025-11-27 10:00:00”, or “2025-11-27T10:00:00Z” then plotly does not subtract the timezone. I find this very odd. So is the conclusion that date format must always be strings? Or maybe a configuration setting to tell Plotly to not do the subtraction??

What is working is to download the data from Cloud, add the sensor timezone and save that as a fake string “2025-11-27T10:00:00Z” so that the browser thinks it is in UTC time, but isnt really. That fools Date.parse (and hence Plotly) and so the data finally plots in the sensor timezone.