Skip to content

Commit

Permalink
add hour in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspercroome committed Apr 30, 2024
1 parent b7728ac commit 90fd4d4
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions client-mu-plugins/goodbids/src/classes/Auctions/Auction.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,19 +539,10 @@ public function is_ending_soon(): bool {
return false;
}

// commenting out extension logic for now
// TODO add a variable in the UI for 'ending soon notification threshold'
// $extension = $this->get_bid_extension();

$static_threshold_min = 60*60; // 60 minutes
$static_threshold_max = 60*120; // 120 minutes

// if ( ! $extension ) {
// return false;
// }

// Set threshold to be static
// $threshold = intval( round( $extension * .3 ) );

$static_threshold_min = HOUR_IN_SECONDS * 1; // 60 minutes
$static_threshold_max = HOUR_IN_SECONDS * 2; // 120 minutes

try {
$end = new DateTimeImmutable( $end_date_time, wp_timezone() );
Expand Down

0 comments on commit 90fd4d4

Please sign in to comment.