|
Mantis - Quercus
|
|
Viewing Issue Advanced Details |
|
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
|
5822 |
|
block |
always |
11-10-14 06:13 |
11-13-14 16:03 |
|
|
Reporter:
|
extremia |
Platform:
|
|
|
|
Assigned To:
|
nam |
OS:
|
Windows |
|
|
Priority:
|
normal |
OS Version:
|
7 |
|
|
Status:
|
closed |
Product Version:
|
4.0.36 |
|
|
Product Build:
|
|
Resolution:
|
fixed |
|
|
Projection:
|
none |
|
|
|
|
ETA:
|
none |
Fixed in Version:
|
|
|
|
|
Summary:
|
0005822: Fatal Error: 'date_diff' is an unknown function |
|
Description:
|
Use of date_diff function causes fatal error:
[14-11-10 15:44:06.533] {resin-port-8080-11} c:\Java\resin-pro-4.0.41\webapps\ROOT\webwidget\order.multilist.php:926: Fatal Error: 'date_diff' is an unknown function. |
|
Steps To Reproduce:
|
Example code:
$delivery_date = explode(' ', $delivery_date);
$delivery_date = date_create($delivery_date[0]);
$now_date = date_create(date('Y-m-d'));
$difference = date_diff($now_date, $delivery_date);
|
|
Additional Information:
|
According to http://php.net/manual/en/function.date-diff.php [^] date_diff function is an alias of DateTime::diff() (PHP 5 >= 5.3.0) |
| Relationships | |
|
Attached Files:
|
|