• When viewing an abandoned cart, the “last update” field is displayed as in GMT rather than using the offset provided by WordPress.

    The time can be displayed using the selected GMT offset by converting to a timestamp, adding the offset seconds, and then reformatting as a date.

    $seconds_offset = get_option( 'gmt_offset' ) * 3600;
    $last_update = date('Y-m-d h:i:sa', strtotime( $last_update ) + $seconds_offset );

    Thanks!

    https://www.ads-software.com/plugins/yith-woocommerce-recover-abandoned-cart/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cart Last Update displayed in GMT’ is closed to new replies.