How to get the current dashboard time zone in panel plugin


How do I get the current selected time zone in panel plugin. Can some one please point me to the right api.

Also who is responsible for time zone manipulation in general , data source plugin or the panel plugin.


I wish there was a way to perform an add operation on the time column in Grafana transformations, but there isn’t any. So, the only option left is to perform time manipulation in the query.

I’m using custom Splunk datasource plugin. We store all logs in UTC and we are at UTC-7h time zone. If I want to display the local time I change values of time column in the query.
base query ... | eval _time=_time-7h | table _time metric1 ...