diff --git a/includes/wc-user-functions.php b/includes/wc-user-functions.php index 20c8e8d59aa..2aaf43ea6a2 100644 --- a/includes/wc-user-functions.php +++ b/includes/wc-user-functions.php @@ -898,7 +898,7 @@ function wc_update_user_last_active( $user_id ) { if ( ! $user_id ) { return; } - update_user_meta( $user_id, 'wc_last_active', (string) strtotime( date( 'Y-m-d', time() ) ) ); + update_user_meta( $user_id, 'wc_last_active', (string) strtotime( gmdate( 'Y-m-d', time() ) ) ); } /**