From a67de1af018c036c624f4af6ad7fce2174cccdf3 Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Tue, 22 Dec 2015 13:47:19 -0600 Subject: [PATCH] Automatically add datetime in samples, if not set in php.ini --- sample/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sample/bootstrap.php b/sample/bootstrap.php index 34245a49..6d1513bb 100644 --- a/sample/bootstrap.php +++ b/sample/bootstrap.php @@ -22,6 +22,10 @@ use PayPal\Auth\OAuthTokenCredential; use PayPal\Rest\ApiContext; +// Suppress DateTime warnings, if not set already +date_default_timezone_set(@date_default_timezone_get()); + +// Adding Error Reporting for understanding errors properly error_reporting(E_ALL); ini_set('display_errors', '1');