From 3999b4b61687f5594b5f802fa0d8497893b5bff9 Mon Sep 17 00:00:00 2001 From: Irene Rodriguez Date: Thu, 22 Aug 2024 16:08:57 +0200 Subject: [PATCH] Added admonition about time zones (#92288) Co-authored-by: Jack Baldry --- docs/sources/datasources/mssql/query-editor/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sources/datasources/mssql/query-editor/index.md b/docs/sources/datasources/mssql/query-editor/index.md index f89e3f06215..1e5abb45de2 100644 --- a/docs/sources/datasources/mssql/query-editor/index.md +++ b/docs/sources/datasources/mssql/query-editor/index.md @@ -247,6 +247,10 @@ The resulting table panel: ## Use time series queries +{{< admonition type="note" >}} +Store timestamps in UTC to avoid issues with time shifts in Grafana when using non-UTC timezones. +{{< /admonition >}} + If you set the **Format** setting in the query editor to **Time series**, then the query must have a column named `time` that returns either a SQL datetime or any numeric datatype representing Unix epoch in seconds. Result sets of time series queries must also be sorted by time for panels to properly visualize the result.