Solving problem with dates after commenting tasks

This commit is contained in:
Manuel Cillero 2017-08-13 10:16:11 +02:00
parent 183372ebe3
commit dbcdde741c

View file

@ -825,19 +825,8 @@ function _stormtask_beforesave(&$node) {
$node->duration = str_replace(',', '.', $node->duration);
$node->price = str_replace(',', '.', $node->price);
if (is_array($node->datebegin)) {
$node->datebegin = _storm_date_to_gmtimestamp($node->datebegin);
}
else {
$node->datebegin = strtotime($node->datebegin);
}
if (is_array($node->dateend)) {
$node->dateend = _storm_date_to_gmtimestamp($node->dateend);
}
else {
$node->dateend = strtotime($node->dateend);
}
if (is_array($node->datebegin)) $node->datebegin = _storm_date_to_gmtimestamp($node->datebegin);
if (is_array($node->dateend)) $node->dateend = _storm_date_to_gmtimestamp($node->dateend);
}
function stormtask_nodeapi(&$node, $op, $teaser, $page) {