Understanding StartDate and EndDate Filters

Forum for questions and support relating to 1.33.x development only.
Locked
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Understanding StartDate and EndDate Filters

Post by bignellrp »

Hi,

Date/Time is missing on 1.33 and has been replaced with StartDate and EndDate.

StartDate for example only seems to let me choose a date. Im just trying to create a delete when older than 5 days but if i put -1 in startdate it finds all events including the current day.

I searched the docs and cant find any examples as the examples are for 1.32
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Understanding StartDate and EndDate Filters

Post by iconnor »

Start Date/Time is there... so is Start Time.... Everything works the same as before, except that before you only had Date/Time which is ambiguous. Now we have Start Date/Time and End Date/Time which work the same as Date/Time did.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Understanding StartDate and EndDate Filters

Post by bbunge »

Hmm..
Does not seem to let me set a purge after 30 days.
use to set
Date less than or equal to -30 day

Now a calendar comes comes up which sets a specific date. Really need to keep the rolling day purge somehow. Do not want to depend on purge at disk percent.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Understanding StartDate and EndDate Filters

Post by iconnor »

You can still type in -30 days
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Understanding StartDate and EndDate Filters

Post by bbunge »

Is there any functional difference between Start and End (date/Time)?

Answered my own question..

Set up filter to delete events by days. Used both End Date and Start Date Less than or equal to -6 day Archived status unarchived only

and both worked.
mikb
Posts: 599
Joined: Mon Mar 25, 2013 12:34 pm

Re: Understanding StartDate and EndDate Filters

Post by mikb »

bbunge wrote: Sun Jan 12, 2020 11:37 pm Is there any functional difference between Start and End (date/Time)?
The answer to that seems too obvious, but ... one filter option uses the START time of the event, and the other the END time of the event for filtering.

As your events are probably shorter than a day each, then you'd see pretty much the same behaviour, as they'd all start and end on the same day.

However, you might see some stuff happen around midnight (e.g. starts Tuesday 23:58, ends Wednesday 00:02) ... where one rule would zap this, but the other rule would wait a day later to zap it.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Understanding StartDate and EndDate Filters

Post by iconnor »

The only issue with EndDate is that it doesn't get populated until after the event is finished... so some action filters like SMS, Email etc won't act until the event closes. Not a big deal but something to keep in mind.
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Re: Understanding StartDate and EndDate Filters

Post by bignellrp »

Sorry but I’m still having issues with this. I tried -3 days and delete all events but the disk continues to fill up. I keep having to manually go and delete the events folders from the server. The filter finds events and seems to be clearing from the dB but I’m not sure it’s deleting them from the server.

I tried -1 days and it’s the same.
Attachments
DEED4042-F539-4011-930E-48E3435DBDFF.jpeg
DEED4042-F539-4011-930E-48E3435DBDFF.jpeg (422.13 KiB) Viewed 6641 times
Locked