Skip to content

Commit

Permalink
Merge pull request #2283 from Micdu70/patch-7
Browse files Browse the repository at this point in the history
Remove deprecated strftime() PHP function
  • Loading branch information
Novik committed Feb 1, 2022
2 parents 4a6cc11 + bf53635 commit 0071009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/utility/fileutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ public static function toLog( $str )
$w = fopen( $log_file, "ab+" );
if( $w )
{
fputs( $w, "[".strftime( "%d.%m.%y %H:%M:%S" )."] {$str}\n" );
fputs( $w, "[".date_create()->format('Y-m-d H:i:s')."] {$str}\n" );
fclose( $w );
}
}
}
}
}

0 comments on commit 0071009

Please sign in to comment.