We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Vesta CP strtotime() Errors
Vesta CP strtotime() Errors
I updated my Ubuntu server recently and started to get all these strtotime() errors. Any idea how to fix? I looked at list_user.html and there isn't any clear place to change the timezone as the error code states. Files I've seen this error pop up for: list_user.html, list_stats.html, & list_web.html.
<p>
Code: Select all
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. in /usr/local/vesta/web/templates/admin/list_user.html on line 62
Code: Select all
Warning: strftime(): 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 /usr/local/vesta/web/templates/admin/list_user.html on line 62
18 Jun 2014
Re: Vesta CP strtotime() Errors
Hi, Gordon55M
you should change timezone settings on your ubuntu system and php settings
you should change timezone settings on your ubuntu system and php settings
Re: Vesta CP strtotime() Errors
Thanks for the reply. I tried a few things with no success:imperio wrote:Hi, Gordon55M
you should change timezone settings on your ubuntu system and php settings
I ran
Code: Select all
php -i | grep php.ini
Loaded Configuration File: /etc/php5/cli/php.ini
First I changed date.timezone setting in php.ini located in both /etc/php5/cli and /etc/php5/apache2 to America/Chicago. I restarted apache2 using
Code: Select all
sudo service apache2 restart
I also changed the timezone via
Code: Select all
sudo dpkg-reconfigure tzdata
When I run
Code: Select all
php -i | grep timezone
PHP: syntax error, unexpected '=' in /etc/php5/cli/php.ini on line 2
Default timezone => America/Chicago
date.timezone => no value => no value
When i visit my info.php page I see:
Default timezone America/Chicago
date.timezone no value no value
I am still getting the error in Vesta, thoughts?
Re: Vesta CP strtotime() Errors
Show me result of this command
Code: Select all
data
Re: Vesta CP strtotime() Errors
Appreciate the help, but excuse my incompetence; where do I put that command?imperio wrote:Show me result of this commandCode: Select all
data
when I type data into Ubuntu terminal I get:
No command 'data' found, did you mean:
Command 'dat' from package 'liballegro4.2-dev' (universe)
Command 'date' from package 'coreutils' (main)
data: command not found
Thanks again for the quick reply!
Re: Vesta CP strtotime() Errors
sorry
Code: Select all
date
Re: Vesta CP strtotime() Errors
this is your real time or not?Fri Jun 27 12:23:55 CDT 2014
Re: Vesta CP strtotime() Errors
Yes, that was the current Chicago time when the process was run (Where I am located). The server is actually in NY, so perhaps I should use = "America/New York"?imperio wrote:this is your real time or not?Fri Jun 27 12:23:55 CDT 2014
Re: Vesta CP strtotime() Errors
Ok. on Ubuntu the time is correctly
you should change php.ini settings in /etc/php5/apache2/php.ini
find this line
try to this
and than you should restart to apache
you can check the time
create in your domain, a blank php file with the following code
navigate to this file in your browser
you should change php.ini settings in /etc/php5/apache2/php.ini
find this line
Code: Select all
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =
Code: Select all
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Chicago
Code: Select all
service apache2 restart
create in your domain, a blank php file with the following code
Code: Select all
<?
echo date('h:i:s');
?>