Skip to content

Commit

Permalink
Merge pull request #94 from ebta/patch-1
Browse files Browse the repository at this point in the history
Update DateTimeConverter.php
  • Loading branch information
gam6itko authored Nov 5, 2020
2 parents ee09d62 + 30c382a commit 5713379
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function fromBinaryString(string $value): ?\DateTimeInterface

$longDate = ($intDate - self::ZERO_DATE) * self::SEC_IN_DAY;

return \DateTime::createFromFormat('U', (string) ($longDate + $intTime / 1000));
return \DateTime::createFromFormat('U', (string) intval($longDate + $intTime / 1000));
}

/**
Expand Down

0 comments on commit 5713379

Please sign in to comment.