Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Nov 23, 2022
1 parent a93fa8c commit 93e53ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function niceNumber($input, int $decimals = 0, string $point = '.', string $deli
* @return string
*/
function niceDateTime($input, string $format = 'F j, Y, g:i a'): string {
return date($format, $input);
return date($format, (int) $input);
}

/**
Expand Down

0 comments on commit 93e53ee

Please sign in to comment.