If someone has a few minutes can I beg a favor? We’ve got a new bug we’re working on with support and in the interest of helping them help me I’m curious if it’s just us or not.
When you pass a date through a BAQ, a date value 2023-01-01 returns as “1/1/2023”. I’d attach a BAQ as a means to replicate but it would take longer to import than to write from scratch:
select
(cast('20230101' as date)) as [Calculated_foo]
Until recently, when I retrieved that via REST I’d get 2023-01-01T00:00:00-06:00 which is technically wrong but at least enough of it was right to deal with.
However! Now when I run that over REST (V2) I get 2022-12-31T18:00:00-06:00 which has bumped my distributed reporting all off kilter.
Given you are UTC-6 and it is showing 1800 or 6PM I would guess it has to do with when you are running the report. I have a 11PM report that does not run on Friday unless I check Saturday as enabled
Total SWAG here, but do you have a time zone set in your site? If so, are you in that Site when making the REST call? Also, you can have a time zone on System Agents IIRC.
Yep, also we’re SaaS. Pacific time on the ground, Central on the server.
The fun part is our server is UTC-5 right now, UTC-6 on 2023-01-01! If I pass today’s date I get UTC-5. So it’s related to the value not any timezone settings.
That’s really interesting! It looks like there’s a configuration somewhere that changes how date/time is handled over REST. I’ve never seen straight UTC time format on our SaaS instance. Even the SQL datetimeoffset type is converted. I’ve only ever seen a datetimeoffset, except V1 REST, that still returns an unqualified datetime (YYYY-MM-DDThh:mm:ss).
It’s definitely something going on post-SQL. Dates and datetimes are coming out of queries fine, no problem running in BAQ or dashboards or SSRS.
Thanks to all! I want to mark everything as a solution.
I’ll certainly pass on to support that this is impacting at least one other SaaS instance. Anybody else? I’ll also post my support ticket# for others to reference when I’m back at my work computer tomorrow morning.
@kananga do you have a case number that I can reference? I submitted a support case this morning for this same issue before I realized that others have already discovered this.