shwstppr commented on PR #6401:
URL: https://github.com/apache/cloudstack/pull/6401#issuecomment-1208990027

   @joseflauzino sorry if I didn't explain myself better. I'm not saying API 
should accept timezone but maybe we can call API with timezone that the server 
expects. My issue currently is,
   
   - In UI, I'm using IST timezone (UTC+0530)
   - Server is storing stats with UTC timezone, API returns the times with the 
same.
   - I deploy a VM at 1000hr IST. Server starts collecting/storing stats for 
the VM but they are stored with time starting 0430hr UTC
   - Now in UI at 1100hr IST I want to see stats. UI allows me to filter stats 
between 1000-1100hr IST. When I make this selection I see nothing because API 
is called with something like 
`startDate=2022-08-09+10:00:00&endDate=2022-08-09+11:00:00`.
   - As the server is behind by 0530h. I'll never see stats for the current 
time. But if I call API with all available data it will show the stats.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to