Viewing 4 replies - 1 through 4 (of 4 total)
  • Edit wp-open-hours/time.php and replace a current date_default_timezone_set(”).

    To fix a strange time calculating go to wp-open-hours/wp_openhour_widget.php and just delete two divs after <div class=”mod-fwoh-<?php echo $template_arr[$layout]; ?>”> and add
    <div class=”mod-fwoh-<?php echo $template_arr[$layout]; ?>-time-label”>Current Time: <?php echo date(“h:i a”); ?></div>

    Thread Starter guilhermenocera

    (@guilhermenocera)

    Thank you so much for that!

    In addition to edit of wp-open-hours/time.php and replace a current date_default_timezone_set(”). You have also replace a current date_default_timezone_set(”) in “wp-open-hours/wp_openhour_widget.php” too. After that continue last edit as viskia told just delete two divs after <div class=”mod-fwoh-<?php echo $template_arr[$layout]; ?>”> and add
    <div class=”mod-fwoh-<?php echo $template_arr[$layout]; ?>-time-label”>Current Time: <?php echo date(“h:i a”); ?></div>. Then this works great.

    Thanks for great plugin

    ok how about the opening in x hours? it always shows wrong calculation, can you help?
    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Setting time’ is closed to new replies.