Timezones |
[eluser]renownedmedia[/eluser]
I've been adding the following line to my entry point of time-sensitive applications before using CI: Code: putenv("TZ=America/Detroit"); I'm wondering two things, the first is should I be using this line in my applications or is there a better method, and also should I stick this in the index.php of CI or is there a better location?
[eluser]sharpe[/eluser]
1. You could use Code: date_default_timezone_set('America/Detroit'); Code: $hook['pre_system'][] = array( init.php file Code: function init() remember to have $config['enable_hooks'] = TRUE //config.php
|
Welcome Guest, Not a member yet? Register Sign In |