Currently, the client.datapoints.insert() function does not support timezone aware datetime objects, and throws an error if you try to upload datapoints with such datetimes:

Can you fix this? I imagine the fix would be very simple, simply switch out the definition of the datetime_to_ms() function to:
def datetime_to_ms(dt):
return dt.timestamp()*1000
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support