Event time displays different than in preview

[ad_1]

My local timezone is set to Los Angeles, and when I create events on My Calendar, they preview correctly, however the event times display seven hours ahead in the published view.

Anyone have any suggestions as to what is causing this issue?

[ad_2]
1 Comment
  1. Probably you have an account timezone and the display is using the system time zone or something like that.

    Check the WP settings and change the timezone its using.

    Or you could force your site to run on a specific timezone:

    function force_this_timezone() {
    date_default_timezone_set(‘America/Los_Angeles’);
    }
    add_action(‘init’, ‘force_this_timezone’);

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer