Support » Plugin: WP Open Hour Widget » Adjust Offset

  • in wp_openhour_widget.php

    var d = new Date();
    var offset = 0;   <== adjust here
    utc = d.getTime() + (d.getTimezoneOffset() * 60000);
    nd = new Date(utc + (3600000*offset));

    Remove following code to avoid showing oppening in xxx time

    <?php echo ($is_open) ? 'Closing in <b id="dhour">'.$time_to_open_close.'</b>' : 'Opening in <b id="dhour">'.$time_to_open_close.'</b>'; ?>

  • The topic ‘Adjust Offset’ is closed to new replies.