Skip to content

Commit 133fad8

Browse files
committed
Fixed "Error parsing [float] as 64-bit integer" in Model::freshTimestamp() (mongodb#1115)
1 parent bb1c7ef commit 133fad8

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
@@ -107,7 +107,7 @@ protected function getDateFormat()
107107
*/
108108
public function freshTimestamp()
109109
{
110-
return new UTCDateTime(round(microtime(true) * 1000));
110+
return new UTCDateTime((int) round(microtime(true) * 1000));
111111
}
112112

113113
/**

0 commit comments

Comments
 (0)