Advertisement:

Author Topic: Expiration Dates do not update  (Read 139 times)

Dimal

  • Full Member
  • ***
  • Posts: 120
Expiration Dates do not update
« on: August 23, 2019, 08:48:02 pm »
I'm moving some ads to an other category, with much shorter ad duration. The previous category was 1 year and now it is one month.

The thing is that the expiration of the item in the Listing dashboard doesn't change. Remains one year after the post.

Is that normal ?

Thanks

Dimal

  • Full Member
  • ***
  • Posts: 120
Re: Expiration Dates do not update
« Reply #1 on: August 23, 2019, 09:21:37 pm »
Ok, it seems that after a while the expiration is corrected.

Not sure if a CRON or something worked.



Actually it didn't. I checked the wrong post.

So the problem remains.
« Last Edit: August 23, 2019, 09:28:40 pm by Dimal »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Expiration Dates do not update
« Reply #2 on: August 24, 2019, 10:02:05 am »
Change the expiration days in the target category by +1 day. Then after the query finishes, put it as it was. This will regenerate de expirations date acc. to creation date. Test on a test server first.
« Last Edit: August 24, 2019, 09:22:09 pm by marius-ciclistu »

Dimal

  • Full Member
  • ***
  • Posts: 120
Re: Expiration Dates do not update
« Reply #3 on: August 24, 2019, 11:49:28 am »
So before doing that, let me ask: am i right ? It is like that ? Doesn't work right ?

Dimal

  • Full Member
  • ***
  • Posts: 120
Re: Expiration Dates do not update
« Reply #4 on: August 24, 2019, 11:53:06 am »
Change the expiration days in the tarket category by +1 day. Then after the query finishes, put it as it was. This will regenerate de expirations date acc. to creation date. Test on a test server first.

That works !!

But it shouldn't be like that i guess. Every time you want to move something ....

Ah Oh, Osclass if full of those little bugs.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Expiration Dates do not update
« Reply #5 on: August 24, 2019, 09:23:14 pm »
Tell me about it... I fixed many many bugs in it and posted the solutions here.
« Last Edit: August 24, 2019, 09:25:59 pm by marius-ciclistu »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1700
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Expiration Dates do not update
« Reply #6 on: August 24, 2019, 09:25:40 pm »
But i changed the behaviour. When the item is prolonged by the user, I change the creation date as well becauss if the expiration date in a category is changed, it recalculates the expiration date based on the creation date.