Skip to content

Commit cfe6271

Browse files
committed
Fixed "Error parsing [float] as 64-bit integer" in Model::freshTimestamp()
1 parent e3bea54 commit cfe6271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ protected function getDateFormat()
191191
*/
192192
public function freshTimestamp()
193193
{
194-
return new UTCDateTime(round(microtime(true) * 1000));
194+
return new UTCDateTime((int) round(microtime(true) * 1000));
195195
}
196196

197197
/**

0 commit comments

Comments
 (0)