Hi,
Standard PHP Date function has been used to display date which uses server’s time zone. I agree I would be better to use timezone from WP settings.
Please replace line 27 in header.php (<div class=”topdate”><?php echo date(‘l, jS F Y’); ?>) with below
<div class="topdate"><?php echo current_time('l, jS F Y'); ?>
You can read more about current_time here.
I would add this in next update release.
Thanks,
Thread Starter
ciepan
(@ciepan)
Thanks, it works
but I can not set my language
-
This reply was modified 5 years, 7 months ago by
ciepan.
Thread Starter
ciepan
(@ciepan)
Can I replace:
<div class="topdate"><?php echo current_time('l, jS F Y'); ?>
Something like this:
<div class="topdate"><?php echo esc_html( date_i18n(get_option( 'date_format' )) ); ?>
?