Solving problem with dates after commenting tasks
This commit is contained in:
parent
183372ebe3
commit
dbcdde741c
1 changed files with 3 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue