Skip to content

Commit

Permalink
Update vzcompress2 - add intval to strftime (#941)
Browse files Browse the repository at this point in the history
Add intval to strftime function.
Suppress PHP 8.2 PHP Deprecated Warning
  • Loading branch information
bbr111 authored Jun 13, 2023
1 parent b1195eb commit 778b008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vzcompress2
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class VZcompress2 {
* Output functions
*/
private function strftime($time = null) {
return date($this->timestr, $time);
return date($this->timestr, intval($time));
}

private function out($str, $delim = "\n") {
Expand Down

0 comments on commit 778b008

Please sign in to comment.