Open Mark-H opened 10 years ago
resource/create processor:
$now = time();
if (isset($scriptProperties['pub_date'])) {
if (empty($scriptProperties['pub_date'])) {
$scriptProperties['pub_date'] = 0;
} else {
$scriptProperties['pub_date'] = strtotime($scriptProperties['pub_date']);
if ($scriptProperties['pub_date'] < $now) $scriptProperties['published'] = 1;
if ($scriptProperties['pub_date'] > $now) $scriptProperties['published'] = 0;
}
}
The core expects it to be a time string as indicated by the strtotime function call
Reported by Ivan B