-
-
Notifications
You must be signed in to change notification settings - Fork 204
Support now
in params for DATETIME fields
#313
Comments
We should add
Example:
The second example will ignore the any article that are scheduled to be published later in the day |
It seems like this is more of an issue with Is it tomorrow? It seems like we need a standardized way to ignore the time... then, instead of Otherwise you need to do a "between" for 00:00:00 and 24:00:00 for the day you're checking. Thoughts? |
I am not following what you are trying to say. What I am suggesting is that Both will work differently depending if the field is Going over solution for yesterday, 2 days ago that's another subject, I just wanted to make a quick way for users to fetch the current time based on the server and not the client. Using complete date is same as it is right now.:
Leaving the time out is a good way to ignore the time, for example Where is the
In this case the users need to know what's the current day based on the client and not the server. That's one of the problem this is trying to solve, not having to know the date and letting the server get that information. |
OK, well let's start with this I like the idea of removing the submitted time to check the date only (don't compare time). Seems cleaner than an extra param. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think the most important part of this ticket is having an option for We can discuss what other options we want to add in the future. |
Awesome!!! @rijkvanzanten — how do we want to handle this in the App? Also, where should this go in the Docs? |
Handle in the app how? Ideally, the filter is a little bit smarter when filtering for a date so it can show a range when filtering for between where |
When filtering, you should be able to enter a specific date, or use the |
I realized this didn't work for I will add a note in the Docs about this. |
* Fix body height Closes directus#313 * Fix body height some more * Add transition to error messages
Hi, deep={ |
To make working with dates easier, we should add a
now
keyword when working with date fields. This will make it easier to do item queries like “past 5 days” or “today”The text was updated successfully, but these errors were encountered: