Timezone Overwritten in wp-settings.php
|Reported by:||sterfry68||Owned by:|
wp-settings.php, line 36:
date_default_timezone_set( 'UTC' );
appears to be overriding the timezone selected in the dashboard and held in the options table. This code:
<?php echo date_default_timezone_get(); ?>
always returns UTC no matter what is in the options table. And when I comment out line 36 in wp-settings, I get the correct timezone. This problem has been verified by another user on the support forum.
I have employed a temporary fix by manually setting the timezone back to my option before calling a date function or class.
Change History (6)
- Cc ian_dunn@… added