Skip to content

Commit 0409499

Browse files
added fraction part
1 parent d8bf14e commit 0409499

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/StructuresTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ public function testDuration(AProtocol $protocol)
209209
public function testLocalDateTime(int $timestamp, AProtocol $protocol)
210210
{
211211
try {
212+
$timestamp = bcadd($timestamp, fmod(microtime(true), 1), 6);
212213
$datetime = \DateTime::createFromFormat('U.u', $timestamp)
213214
->format('Y-m-d\TH:i:s.u');
214215

0 commit comments

Comments
 (0)