[Bug] Use UTC time zone when interpolating time variables, and not Locale
server timezone
#966
Labels
type/bug
Something isn't working
Locale
server timezone
#966
Ehen interpolating the time range for
$__timeFrom
and$__timeTo
, instead of passingtimeRange.From
andtimeRange.To
, we should passtimeRange.From.UTC()
. In the current implementation, the time zone is not explicitly specified, so it defaults to theLocal
time zone of the Grafana server, which can be incorrect and unexpected. This fix will at least ensure consistency in the time zone being used (other data sources handle this in the same way). Once this change is implemented, it would resolve the issue for cases where users have selected theUTC
time zone.The text was updated successfully, but these errors were encountered: