Permalink
Browse files

fixed warning about timezone configuration

  • Loading branch information...
brikou committed Aug 23, 2012
1 parent 114afd3 commit 91a0a1a4af882ebaf985f27a5b613f277605c2c0
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/brikou/price.php
View
@@ -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));
@@ -90,6 +90,8 @@ function getSellByDate($productCode, $supplierId, $deliveryDate)
return $sellByDate->format('Y/m/d');
}
+ini_set('date.timezone', 'UTC');
+
$rows = getRows();
ob_start();

0 comments on commit 91a0a1a

Please sign in to comment.