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
Have you had a chance to try that version of the SDK yet?
Hi@Thomas Sjølshagen , I just tested the new version of the SDK and it seems that this issue has been fixed. Great work!
Since we didn’t support timestamps prior to 01.01.1970 and we implemented the timestamps prior to that date as negative values, we believe it’s not a breaking change.
Do you have a different experience after it was added to the API?
And ignore that reply… *sigh* Too many moving parts, sorry!