Hello,
I’m so confusing about timezone with Opensearch.
I’m in France (UTC+2H), with a browser in English or in French depend of users.
If I index some datas at 10:00 (UTC+2), data showing in discover view will be displayed with +2 hours.
If I force settings (in opensearch-dashboards) to UTC, I see correct hour BUT opensearch-dashboard search engine, when I use relative time, show me range between 6 and 8 if I use filter last 2 hours in place of 8 and 10.
any way to force UTC to all view in opensearch-dashboards ?
Regards.
Hi @jacquesh,
what setting do you mean you set in OpenSearch Dashboards?
You ment the Setting Stack Management → Advanced Settings → Timezone for date formatting?
If yes, i just configured my Home Lab to use the UTC Timezone and if i search relative i find the Logs in the right Time range.
Could you please share some Screenshots which describes what Problem you have?
It is fine if you mask the unnecessary fields like the log message.
Hi,
i’m using current version of Dashboards (2.14) and i’ve exactly same problem. It looks like a bug to me.
OSD internal Timezone seems to be always UTC, independent of the configuration parameter “Timezone for date formatting”.
You can confirm it by setting any other timezone and then execute a search with relative timeframe like “last 15 minutes”. Inspect the execute request with developer tools (any browser) and you will see, the search query contains a filter with UTC values and not your chosen timezone (in my case it is always two hours to late).
Additionally the “Date” Header of the response indicates the same.