Page 1 of 1

XXAMPP doesn't appear to allow me to set a default timezone.

PostPosted: 16. June 2016 02:41
by BenGeocth
Code: Select all
 date.timezone = "America/Nome"

This is the line in the ini file under
Code: Select all
[Date]


I have also tried setting it through
Code: Select all
date_default_timezone_set("America/Nome");


While it is allowing me to edit the ini file, it doesnt affect xxampp (yes, I have restarted it after changing the ini files)

Re: XXAMPP doesn't appear to allow me to set a default timez

PostPosted: 16. June 2016 10:18
by Nobbie
BenGeocth wrote:While it is allowing me to edit the ini file, it doesnt affect xxampp (yes, I have restarted it after changing the ini files)


Could you explain more precisely, what does not work, which error occurs or whatever is going wrong?! And which ini file did you edit?

Re: XXAMPP doesn't appear to allow me to set a default timez

PostPosted: 16. June 2016 17:37
by BenGeocth
php.ini is the ini file. It doesn't throw any errors. if I echo the function
Code: Select all
 echo date_default_timezone_set("America/Nome");
echos a 1 on the screen- which means theoretically, it was successful, right?

Re: XXAMPP doesn't appear to allow me to set a default timez

PostPosted: 16. June 2016 18:34
by Nobbie
This does not answer my question. As it is your problem, not mine, i am out of here. Good luck.

P.S.:
BenGeocth wrote: echos a 1 on the screen- which means theoretically, it was successful, right?


No, wrong. Read the documentation: http://php.net/manual/en/function.date- ... ne-set.php

Return Values

This function returns FALSE if the timezone_identifier isn't valid, or TRUE otherwise.


There is NOTHING about "success" or "no success". Whatever you mean by "success" (that was my initial question, but it is your decision not to answer, therefore this is my last answer).