Skip to content

Commit

Permalink
fixed warning about timezone configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
brikou committed Aug 23, 2012
1 parent 114afd3 commit 91a0a1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php/brikou/price.php
Expand Up @@ -78,7 +78,7 @@ function getSellByDate($productCode, $supplierId, $deliveryDate)
default:
$time = '1 week';
break;
}
}

$sellByDate = DateTime::createFromFormat('Y/m/d', $deliveryDate);
$sellByDate->add(DateInterval::createFromDateString($time));
Expand All @@ -90,6 +90,8 @@ function getSellByDate($productCode, $supplierId, $deliveryDate)
return $sellByDate->format('Y/m/d');
}

ini_set('date.timezone', 'UTC');

$rows = getRows();

ob_start();
Expand Down

0 comments on commit 91a0a1a

Please sign in to comment.