Dori Posted December 12, 2013 Posted December 12, 2013 I have edited everything and anything with "Timezone" and I still can't get the time in my website correct. I have looked everywhere and found no help. Please tell me how to change my timezone in my website?
Dori Posted December 12, 2013 Author Posted December 12, 2013 (edited) Oh.. i actually had no idea this config even existed @.@ 'DateDefaultTimezone' => null, // The default timezone, consult the PHP manual for valid timezones: http://php.net/timezones (null for defaut system TZ) Change your index.php back to how it was and set the default timezone in config/application.php instead. I did do that. I have the time zone set in application.php and also in server.php, but still it doesn't change the time Edit: Solved. Edited December 13, 2013 by Phenex 1
0 pr3p Posted December 13, 2013 Posted December 13, 2013 ^^ congrats anyway sorry for the late reply on skype too busy
Dori Posted December 12, 2013 Author Posted December 12, 2013 date.timezone config in my php.ini is already set. in index.php all i found was this: // Set default timezone for entire app. $timezone = Flux::config('DateDefaultTimezone'); if ($timezone && !@date_default_timezone_set($timezone)) { throw new Flux_Error("'$timezone' is not a valid timezone. Consult http://php.net/timezones for a list of valid timezones."); I put my time zone where it says 'DateDefaultTimezone' and nothing really worked.
Question
Dori
I have edited everything and anything with "Timezone" and I still can't get the time in my website correct. I have looked everywhere and found no help. Please tell me how to change my timezone in my website?
3 answers to this question
Recommended Posts