jolicode/JoliCi

DateTime::__construct() exception is thrown

Closed this issue · 2 comments

I try to run it on my Node.js project via php jolici.phar run -vvv and I get the following:

Creating builds...



  [Exception]                                                                                                                                        
  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 dat  
  e_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the t  
  imezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.                                  



Exception trace:
 () at phar:///Volumes/Work/circularwave/cayman/jolici.phar/src/Joli/JoliCi/Job.php:76
 DateTime->__construct() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/src/Joli/JoliCi/Job.php:76
 Joli\JoliCi\Job->__construct() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/src/Joli/JoliCi/BuildStrategy/TravisCiBuildStrategy.php:189
 Joli\JoliCi\BuildStrategy\TravisCiBuildStrategy->getJobs() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/src/Joli/JoliCi/BuildStrategy/ChainBuildStrategy.php:33
 Joli\JoliCi\BuildStrategy\ChainBuildStrategy->getJobs() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/src/Joli/JoliCi/Command/RunCommand.php:53
 Joli\JoliCi\Command\RunCommand->execute() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
 Symfony\Component\Console\Command\Command->run() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
 Symfony\Component\Console\Application->doRunCommand() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
 Symfony\Component\Console\Application->doRun() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at phar:///Volumes/Work/circularwave/cayman/jolici.phar/bin/jolici:28
 require() at /Volumes/Work/circularwave/cayman/jolici.phar:6


run [-p|--project-path[="..."]] [-k|--keep[="..."]] [--no-cache] [--timeout[="..."]] [--notify] [cmd]

It's fixed by setting date.timezone = 'UTC' in /etc/php.ini

Hello,

Thanks for opening this issue.

Unfortunately, we don't support this repository anymore.
I'm sorry, but I'll close this issue.

I hope you understand.