Show the global variables as per the timezone of the dashboard

Hi Team,

My dashboard is in CET timezone. And in the text panel i am using ${__from:date:YYYY-MM-DD HH}:${__from:date:mm}:${__from:date:00} to print the value. But seems like its not matching. Is there anyway to make this inline with the user selected time as per the timezone ?

Thank you,
Animesh

From documentation:

${__from:date:YYYY-MM-DD HH\:mm\:00} Any custom date format. Uses browser time. Use :date or :date:iso for UTC

So in this case you see time in the timezone of your browser, not configured in the dashboard.

Cant i convert it to cet? Because the users are from cet timezone and ist both. If the dashboard is in cet and rue users are from ist there could be an issue

As far as I now, you can’t convert it with built-in variables. Only UTC or browser.

But what is your use case? Why do you need to show time selected in a time picker in a separate text panel? May be you can utilize your datasource for necessary time conversion?

See a simple example where in table I get the same periods as user choose in the time picker (my browser not in CET):

InfluxDB’s flux is used and Grafana’s overrides.