This commit is contained in:
Mykyta Synelnikov
2023-11-29 19:18:38 +02:00
parent edf0ed3085
commit 6d0f9494f3
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ class Secure {
if ( empty( $last_scanned_capability ) ) {
delete_option( 'um_secure_scanned_details' );
update_option( 'um_secure_scan_status', 'started' );
update_option( 'um_secure_last_time_scanned', current_datetime()->format( 'U' ) );
update_option( 'um_secure_last_time_scanned', current_time( 'mysql', true ) );
}
$scan_details = get_option( 'um_secure_scanned_details', array() );
@@ -220,8 +220,8 @@ class Secure {
'number' => -1,
'exclude' => $arr_suspected_accounts,
'date_query' => array(
'after' => wp_date( 'F d, Y', strtotime( '-1 day', $oldest_date ) ),
'before' => wp_date( 'F d, Y', strtotime( '+1 day', $newest_date ) ),
'after' => gmdate( get_option( 'date_format', 'F j, Y' ), strtotime( '-1 day', $oldest_date ) ),
'before' => gmdate( get_option( 'date_format', 'F j, Y' ), strtotime( '+1 day', $newest_date ) ),
),
)
);