Announcement

#1 2015-11-25 03:43:26

JTX
Member
2014-09-28
30

TIMEZONE error.............

I have changed nothing to have caused this error.  The things I've seen are 1-2 years old in here on how to fix it. 

DId something change otherwise?  This error does not crash the gallery until someone clicks an image.




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 /home1/XX/public_html/XX/photos/include/functions.inc.php:584 Stack trace: #0 /home1/XX/public_html/XX/photos/include/functions.inc.php(584): DateTime->__construct() #1 /home1/XX/public_html/XX/photos/include/functions.inc.php(605): str2DateTime('2014-11-02 13:5...', NULL) #2 /home1/XX/public_html/XX/photos/picture.php(832): format_date('2014-11-02 13:5...') #3 {main} thrown in /home1/XX/public_html/XX/photos/include/functions.inc.php on line 584




Line 584 is : 

$date = new DateTime();


I have no idea what I need to type in there.

Last edited by JTX (2015-11-25 03:45:35)

Offline

 

#2 2015-11-25 03:51:04

JTX
Member
2014-09-28
30

Re: TIMEZONE error.............

Nevermind.......

I used


$date = new DateTime('America/Chicago');

in /functions.inc.php

And it works now.  Is this going to be a re-occurring problem ?????

Last edited by JTX (2015-11-25 03:52:21)

Offline

 

#3 2015-11-25 06:36:07

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: TIMEZONE error.............


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2015-11-25 18:15:22

JTX
Member
2014-09-28
30

Re: TIMEZONE error.............

Yeah I saw that, but what file needed to be edited was confusing.

Offline

 

#5 2015-11-26 06:33:04

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: TIMEZONE error.............

Hi :-)

For php.ini, it depends on your web host.

You can add the code of Flop in the config local in file config.inc.php in folder local/config

if file doesn't exist you can create.


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2015-11-26 12:05:51

flop25
Piwigo Team
2006-07-06
7037

Re: TIMEZONE error.............

or using Local File Editor


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact