1) We can safely remove...View 2145...View 2231...from change-date-filter-for-expiring-job-ads and still sort these these two Views by Last Modified date and/or by any other custom field.
Yes, I think so. I don't see any problem with that. The front-end sorting controls should still continue to function as expected without the custom filtering code applied to these Views.
2) Am I actually correct in saying that these two code snippets are just there to correct the 1-2 hour time difference from GMT/daylight saving, right?
Based on what I can see in the other ticket, it looks like these two code snippets were designed to help filter out expired posts by adjusting the calculated filter expiration time to account for the potential time difference between the expiration field (GMT/UTC) and the calculated filter time (server timezone). The original View 10351 had one custom field Query Filter based on the post expiration field. The code adjusted the expiration date calculated in the filter using NOW or SECONDS_FROM_NOW.
By the same logic then, it would make sense to remove not only View 2231, but also 1973, 10121 from change-date-filter-for-expiring-job-ads...And similarly, View 2145 as well as 1980, 10151 from change-date-filter-for-expiring-nanny-ads (list below) Correct?
That would leave only two Views in the list of filtered View IDs for change-date-filter-for-expiring-job-ads: 10351 and 10430.
10351 no longer exists:
hidden link
10430 has no expiration date filter, as far as I can tell, unless it is added in other custom code:
hidden link
It would leave only two Views in the list of filtered View IDs for change-date-filter-for-expiring-nanny-ads: 10720 and 10722.
10720 no longer exists:
hidden link
10722 has no expiration date filter, as far as I can tell, unless it is added in other custom code:
hidden link
So for all practical purposes, the change-date-filter-for-expiring-job-ads and change-date-filter-for-expiring-nanny-ads filters can be deleted. They are not doing anything effectively now. They would only be effective if any Views in the list of IDs had one custom field filter for the expiration date field _cred_post_expiration_time, with the field value calculated using NOW(), and that is not the case for any of the Views included in the list of IDs.
3) Snippet post-expiry-gt-now-view-filter (currently inactive) came into existence in another ticket with you...Has this issue been resolved/improved by your dev team yet?
Well no, the problem is the same problem we are addressing in this ticket. My solution was for displaying expired posts correctly and Jamal's solution is for filtering out expired posts correctly. They are opposite sides of the same problem. I have attached a screenshot to explain the problem again. To show or hide expired posts, you need to filter a View based on the field _cred_post_expiration_time. A Query Filter should be configured based on that field. To show expired posts, the value must be lower than NOW(), and to hide expired posts the value must be greater than NOW(). The root problem is that NOW() is calculated incorrectly by Views filters.
Jamal's solution was designed to work with a Query Filter that exists in the View editor screen. It adjusts the calculated NOW() value automatically. My solution was designed to work without a Query Filter in the View editor screen. It creates a filter programmatically and compares the value of the expiration field to the correct value of NOW(). No Query Filter for this field will appear in the View editor screen.
The "less than" code snippet you provided in the ticket (my version: post-expiry-lt-now-view-filter) was only for Ads that had actually expired, right?
Yes, the filter there was designed to display ads that have expired.
I believe "modified" became a valid argument, whereas in previous versions, one could only use "date" as an argument? Any more updates from 2nd level on the "modified" syntax?
Yes, the option to orderby "modified" will sort the results based on the last modified date. I think you can deactivate that snippet for now, or delete it.