Skip to content

Commit

Permalink
Adjust date + date formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermorin committed Feb 16, 2024
1 parent 48c88c2 commit 05489a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions class-plugin-autoupdate-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function auto_update_specific_times( $update, $item ) {
'end' => gmdate( "Y" ) . '-01-02 23:59:59',
),
'wait_for_next_woo_release' => array(
'start' => gmdate( "Y" ) . '-02-16 00:00:00',
'end' => gmdate( "Y" ) . '-02-21 23:59:59',
'start' => gmdate( "Y" ) . '2024-02-16 00:00:00',
'end' => gmdate( "Y" ) . '2024-02-20 23:59:59',
),
);
$holidays = apply_filters( 'plugin_autoupdate_filter_holidays', $holidays );
Expand Down Expand Up @@ -96,8 +96,8 @@ public function auto_update_specific_times( $update, $item ) {
return false;
}

// Otherwise, plugins will autoupdate regardless of settings in wp-admin
return true;
// Otherwise, plugins will autoupdate regardless of settings in wp-admin
return true;
}

/**
Expand Down

1 comment on commit 05489a7

@NickGreen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is broken because the dates are outputting 2024 twice. It should be

'start' => '2024-02-16 00:00:00',
'end'   => '2024-02-20 23:59:59',

Please sign in to comment.