Welcome Guest, Not a member yet? Register   Sign In
Run Cron Job
#2

You're using $settings['listing_expiry_days'] in there which makes it a bit confusing, if I understand it correctly the 7 days should count from current time?

However you should be able to use mktime that takes string as attribute:

PHP Code:
date('Y-m-d H:i:s' mktime('-7 days')) 
Reply


Messages In This Thread
Run Cron Job - by VK4JE - 01-06-2019, 10:43 PM
RE: Run Cron Job - by Pertti - 01-07-2019, 12:56 AM
RE: Run Cron Job - by VK4JE - 01-07-2019, 04:54 AM
RE: Run Cron Job - by rubensanz - 01-29-2019, 01:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB