mjda
Well-known member
I've set the guest timezone to Eastern Time (US & Canada). I have my personal timezone set to Central Time. However, when I get home in the evenings at around 6pm my time, the "Today's birthdays" show all the birthdays which are actually tomorrow. I've checked my server time, as well as the php.ini timezone. They're both set to America/Los_Angeles (Pacific Time).
Using the following small script:
I used it in a file called time.php and it returned the time I expected, which was the America/Los_Angeles time.
However, if I place that code at the top of config.php it gives me the date/time in UTC. So, I can only assume that XF is changing the timezone somewhere.
My question is, is there another setting I'm missing somewhere? I'd really like to only be seeing today's actual birthdays instead of tomorrow's birthdays when I get home from work each day.
Using the following small script:
PHP:
echo 'The date is: '.date('n').'/'.date('j');
echo '<br /><br />';
echo 'The time is: '.date('g').':'.date('ia');
I used it in a file called time.php and it returned the time I expected, which was the America/Los_Angeles time.
However, if I place that code at the top of config.php it gives me the date/time in UTC. So, I can only assume that XF is changing the timezone somewhere.
My question is, is there another setting I'm missing somewhere? I'd really like to only be seeing today's actual birthdays instead of tomorrow's birthdays when I get home from work each day.