Error google drive api 'DateTime::__construct():
Publicado por bryan salas (2 intervenciones) el 14/03/2017 05:05:07
Hola gente, espero me puedan ayudar con este problema, estoy siguiendo el quickstart de google drive pero al momento de validar el proceso con el código que se me entrego me aparece este error.
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Cache/Item.php:129
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Cache/Item.php(129): DateTime->__construct('now + 1500 seco...')
#1 /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/CacheTrait.php(57): Google\Auth\Cache\Item->expiresAfter(1500)
#2 /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php(171): Google\Auth\Middleware\ScopedAccessTokenMiddlewar in /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Cache/Item.php on line 129
MBP-de-Bryan:tecnoseguridad bryansalasvalenzuela$
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Cache/Item.php:129
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Cache/Item.php(129): DateTime->__construct('now + 1500 seco...')
#1 /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/CacheTrait.php(57): Google\Auth\Cache\Item->expiresAfter(1500)
#2 /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php(171): Google\Auth\Middleware\ScopedAccessTokenMiddlewar in /Applications/XAMPP/xamppfiles/htdocs/tecnoseguridad/vendor/google/auth/src/Cache/Item.php on line 129
MBP-de-Bryan:tecnoseguridad bryansalasvalenzuela$
Valora esta pregunta


0