Skip to content

Commit c077f27

Browse files
committed
make sure an integer is passed to setTimestamp()
1 parent 2fdacc9 commit c077f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ranger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function prepare_date($input)
236236
}
237237
if (is_numeric($input)) {
238238
$date = new Datetime;
239-
$date->setTimestamp($input);
239+
$date->setTimestamp(intval($input));
240240
return $date;
241241
}
242242
if (is_string($input)) {

0 commit comments

Comments
 (0)