For the??() call I would recommend to use "formatDate" argument value 2
This will make incoming bars timestamp to be in the format, which is same for all the time zones on the planet and epoch time does not care about summer daylight saving time jumps and it brings other sanity aspects and order back into our lives.
Find some way to convert epoch time to whatever format you need, for example for the next reqHistoricalData() you'll need "endDateTime" argument?to have format "yyyyMMdd HH:mm:ss {TMZ}" (example: "20210113 23:59:59 GMT").
I got a problem and can you guide me? I used the code below and everything went well except the timezone.I queried my local time and sent back UTC time.How shall I modify the timezone?I cannot find in the API document.