Trying to filter a list for records created WITHIN TODAY. No records return. However this was working as expected prior to 900pm EST. In serching for similiar reported bugs a found a few that seemed similiar but were resolved after some time passed. Not sure if I am doing something wrong here or if this is a known issue.
How to replicate
Place filter for within today on any date field and list does not return any result.
I also tested with a querry column, it would seem that there is for sure something wrong with how glide is handling the within today date/time calculation in filter type processes.
Has anyone else encounterd this situation or can someone try it out and let me know if im missing something. Being able to filter list by “within today” is actually an important part of the app I am designing.
It is now 1210am EST (5/5/2024) and the filters are working as expected. All records created starting at 1200am are correctly filterd for “within today”.
The issue seems to impact only the hours between 900pm and 1200am.
Am i missing something or is this a legit issue related to using SQL tables? I ask becuase all other tables not SQL type did not have this issue.
I’m not sure of your problem with SQL tables since I don’t use these but I would say that the last time I had a similar problem, it was because I added a new column for tags and neglected to switch my filter to pull from the new column - so newest row entries weren’t appearing in the filter.
All this to say, double-check all your connecting data in your SQL tables in case there’s something that needs updating.
Not sure really. I checked for filters and the like. Crazy thing is how it stopped working at 900pm and came back at 1200am. Im going to see what happens tonight.
Thats the thing, Its a SQL Table so I dont actually have the ability to set that toggle. My understanding is that new fields have to be created in SQL DB, only row ID type and computed/integration fields can be added in builder with table of this source:
… My question is, How do make it so the “within today” feature works as expected? Is there something I would need to do on the SQL side to align the times? Some kind of seeting?
That’s what I’m trying to determine. Like Darren mentioned, it’s probably treating the time like utc time, so for a few hours of the day utc time is a different day. I think the difference can be how the date time is formatted. Not sure if this issue is specific to SQL sources or not, but these kinds of things seem to be more common with external data sources. Dates can be tricky sometimes.
I guess the easy way out is to create a couple of math columns. One that converts your date column into a numeric YYYYMMDD and the same for the current date (Now). Set up two math columns like this:
Year(date)*10^4 +
Month(date)*10^2 +
Day(date)
In one, replace date with your date column and in the other replace date with ‘Now’. Then set your filter to compare the two numbers.
it curious actually Jeff, I saw you provide a similiar recomendation to an other user. I created the fields and they returned exactly the expected value, THEN I realized that for SQL tables you can not set FILTER or SORT conditions based on columns NOT in the SQL table, meaning - cant use computed columns as filter.
Yeah, Starting to get concerned about this issue. We dont deploy for anther 2-3 weeks, but I really need to find a solutiuon for this.
Got it. Yeah, I’m just throwing out random ideas at this point Since I haven’t used an SQL data source in any of my apps, I’m not sure of all the limitations. Hopefully someone else who has used it has some thoughts.