the output is as followed. The first 10 lines comes from the datafeed directly, I have a line right after it loads the datetime to print(datetime.datetime.fromtimestamp(bar[0]).isoformat()) . So I know both time and date are being passed correctly after it gets passed through the date2num function :