how would i go about to make it so that the publish and expiration date is a static one. Because of the way we use the news module we'll always be using the same publish and experation date. I ofc want the date to be changeable but preset to a certain time so we don't have to manually change it everytime we add a new one. So just to make it clear. I want the date in the options u have to set a date to be preset, not the article it self.
Start date should be set to: Current Month - Current Date - Current Year - - - 21 - 00 - 02
Experation date should be: Current Month - date+3 days - Current year - - - 21 - 00 - 00
I'm guessing i have to change something in these lines of code
Code: Select all
$startdate = time();
if (isset($params['startdate_Month']))
{
$startdate = mktime($params['startdate_Hour'], $params['startdate_Minute'], $params['startdate_Second'], $params['startdate_Month'], $params['startdate_Day'], $params['startdate_Year']);
}
$enddate = strtotime('+6 months', time());
if (isset($params['enddate_Month']))
{
$enddate = mktime($params['enddate_Hour'], $params['enddate_Minute'], $params['enddate_Second'], $params['enddate_Month'], $params['enddate_Day'], $params['enddate_Year']);
}
It's not a big deal but it would save us some time if we could change it like this
Cheers
