joined:July 8, 2007
I'm using mediawiki to build a website and in many case, when the php uses date( ) function, it appears the error "It's not safe to rely on the System's Timezone settings....." .
I understand that this is a quite common question, and i've spent many time to search for solutions. I tried it but it just doesn't work for me...
In c:\xampp\php\php.ini , i set my timezone there. (my computer clocks is in Asia time now, but i set it to Euro
; Defines the default timezone used by the date functions
date.timezone = "Europe/London"
;date.default_latitude = 31.7667
;date.default_longitude = 35.2333
;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333
And in mediawiki's setting file - localsetting.php, i've also added:
#Set Default Timezone
$wgLocaltimezone = "Europe/London";
Do you know why it happens to me...?