Skip to content

Commit

Permalink
Fix PHP 8 error: gmmktime(): Argument #4 ($month) must be of type ?in…
Browse files Browse the repository at this point in the history
…t, string
  • Loading branch information
craigk5n committed Apr 12, 2024
1 parent 224a5ae commit 35cd588
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,14 @@ function date_to_epoch( $d, $gmt = true ) {

if ( $gmt )
return gmmktime ( $dH, $di, $ds,
substr ( $d, 4, 2 ),
substr ( $d, 6, 2 ),
substr ( $d, 0, 4 ) );
(int)substr ( $d, 4, 2 ),
(int)substr ( $d, 6, 2 ),
(int)substr ( $d, 0, 4 ) );
else
return mktime ( $dH, $di, $ds,
substr ( $d, 4, 2 ),
substr ( $d, 6, 2 ),
substr ( $d, 0, 4 ) );
(int)substr ( $d, 4, 2 ),
(int)substr ( $d, 6, 2 ),
(int)substr ( $d, 0, 4 ) );
}


Expand Down

0 comments on commit 35cd588

Please sign in to comment.