mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
porting PHRAS-1770 to 4.1
This commit is contained in:
@@ -431,6 +431,7 @@ class record_preview extends record_adapter
|
|||||||
$nbDays--; // because 0 is included
|
$nbDays--; // because 0 is included
|
||||||
for ($d=$nbDays; $d>=0; $d--) {
|
for ($d=$nbDays; $d>=0; $d--) {
|
||||||
$datetime = new DateTime('-' . $d . ' days');
|
$datetime = new DateTime('-' . $d . ' days');
|
||||||
|
$datetime->modify('+1 day');
|
||||||
$date = date_format($datetime, 'Y-m-d');
|
$date = date_format($datetime, 'Y-m-d');
|
||||||
if($d == $nbDays) {
|
if($d == $nbDays) {
|
||||||
$this->statistics['from'] = $date;
|
$this->statistics['from'] = $date;
|
||||||
|
|||||||
Reference in New Issue
Block a user