Hello Heitor, Thanks for reporting this problem.
You need to set valid timezone in your php.ini file, for example: date.timezone = "Europe/Warsaw" Here is available timezone list: https://www.php.net/manual/en/timezones.php Best regards, Marcin Haba (gani) On Sat, 18 Jan 2020 at 01:10, Heitor Faria <hei...@bacula.com.br> wrote: > Hello Devs (fixing the subject), > > A fresh CentOS 7.7 64 bits Baculum 9.4.4-1.fc30.noarch renders the > following API query error: > > /api/v1/volumes?limit=4 > > { > "output": "Internal error. [Warning] strtotime(): 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. (@line > 86 in file > /usr/share/baculum/htdocs/protected/API/Class/VolumeManager.php).", > "error": 1000 > } > > Is it a missing code or a PHP version problem? > > root@bacula htdocs]# php --version > PHP 5.4.16 (cli) (built: Nov 1 2019 16:04:20) > Copyright (c) 1997-2013 The PHP Group > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies > > Specifying php.ini timezone did not help: > > root@bacula htdocs]# php --version > PHP 5.4.16 (cli) (built: Nov 1 2019 16:04:20) > Copyright (c) 1997-2013 The PHP Group > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies > > Regards, > -- > > MSc Heitor Faria > CEO Bacula LATAM > mobile1: + 1 909 655-8971 > mobile2: + 55 61 98268-4220 > [image: linkedin icon] > <https://www.linkedin.com/in/msc-heitor-faria-5ba51b3> > [image: logo] <Http://www.bacula.com.br> > América Latina > bacula.lat | bacula.com.br <http://www.bacula.com.br> > > _______________________________________________ > Bacula-devel mailing list > Bacula-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-devel > -- "Greater love hath no man than this, that a man lay down his life for his friends." Jesus Christ "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich." Jezus Chrystus
_______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel