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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby BenGeocth » 16. June 2016 02:41

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)
BenGeocth
 
Posts: 6
Joined: 16. May 2016 14:21
XAMPP version: v3.2.2
Operating System: Windows 10

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

Postby Nobbie » 16. June 2016 10:18

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?
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

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

Postby BenGeocth » 16. June 2016 17:37

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?
BenGeocth
 
Posts: 6
Joined: 16. May 2016 14:21
XAMPP version: v3.2.2
Operating System: Windows 10

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

Postby Nobbie » 16. June 2016 18:34

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).
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 34 guests