[Solved] Default Time Zone Not Picking Up - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Default Time Zone Not Picking Up (/showthread.php?tid=62979) |
[Solved] Default Time Zone Not Picking Up - wolfgang1983 - 09-13-2015 I am trying to set my default time zone to New Zealand/Wellingtion but does not pick up New Zealand/Wellingtion Error date_default_timezone_set(): Timezone ID 'New Zealand/Wellington' is invalid What would be correct? date_default_timezone_set('New Zealand/Wellington'); RE: Default Time Zone Not Picking Up - JayAdra - 09-13-2015 Try using 'Pacific/Auckland' as the timezone: http://php.net/manual/en/timezones.php Or if there is another region which is closer/more accurate, use that. But I couldn't see anything at a glance. RE: Default Time Zone Not Picking Up - wolfgang1983 - 09-13-2015 (09-13-2015, 10:31 PM)JayAdra Wrote: Try using 'Pacific/Auckland' as the timezone: Thank you for the link working now. |