Fix date range filters for suspicious accounts and use correct datetime with right timezone settings

This commit is contained in:
Champ Camba
2023-10-27 13:38:49 +08:00
parent 3ccb9cf619
commit 3422c08b98
3 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ if ( ! class_exists( 'um\common\Secure' ) ) {
}
um_reset_user();
update_user_meta( $user->ID, 'um_user_blocked', 'suspicious_activity' );
update_user_meta( $user->ID, 'um_user_blocked__timestamp', current_time( 'mysql' ) );
update_user_meta( $user->ID, 'um_user_blocked__timestamp', current_datetime()->format( 'U' ) );
UM()->user()->remove_cache( $user->ID );
}