-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Cosmos DB Explorer returns different results when run on a Windows workstation with a clock set to (UTC +00:00) Dublin, Edinburgh, Lisbon, London in the United Kingdom, compared to that returned by running it at cosmos.azure.com on the same workstation.
In Cosmos DB Explorer, the query of some_container which records date/time strings as businessDay:
select c.businessDay,
c._ts
from some_container as c
where endswith(c.businessDay, '+00:00')
and c._ts = 1621873271
order by c._tsreturns the result:
[
{
"businessDay": "2021-05-24T01:00:00+01:00",
"_ts": 1621873271
}
]whereas it returns this result:
[
{
"businessDay": "2021-05-24T00:00:00.0000000+00:00",
"_ts": 1621873271
}
]when run at cosmos.azure.com on the same machine. (The latter is in UTC whereas the former has a UTC offset of +01:00.)
As indicated by the SELECT clause, the the data is stored in UTC, so I'd expect (and prefer) the UTC offset in the result not be shifted by Cosmos DB Explorer.
The date/time value being retrieved as businessDay falls within the date range when Daylight Savings Time was observed by the UK in 2021.
Perhaps Cosmos DB Explorer notes the Region is set to United Kingdom, or that the local clock is showing the time for London, and is adding the UTC offset that would be applied when Daylight Savings was observed (which is +01:00 during that period)?
What do others think? Thanks for you help.