When setting time to last 1hr or 24h, its showing incorrect data

i have a time data for last 2 hours like shown, but when i set time to last 4 hours or anything the dashboard shows incorrect data or no data

Found solution
Somehow the timezone is causing the issue, e.g., i have UTC+5:30 but it is adding 5:30 to whatever i had in database so changing time zone to utc resolved the issue.