Skip to content

Commit 08da001

Browse files
Merge pull request #63876 from nextcloud/unified-sharing-32-bits-tests
test(Sharing): Fix tests on 32-bits
2 parents 02e2315 + 0444254 commit 08da001

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/lib/Sharing/AbstractSharingManagerTests.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ abstract protected function getShares(
140140
protected IFactory $l10nFactory;
141141

142142
private function parseTime(mixed $timestampMs): \DateTimeImmutable {
143-
$timestampMs = (int)$timestampMs;
144-
$time = \DateTimeImmutable::createFromFormat('U.u', number_format((float)$timestampMs / 1000.0, 3, '.', ''));
143+
$timestampMs = (float)$timestampMs;
144+
$time = \DateTimeImmutable::createFromFormat('U.u', number_format($timestampMs / 1000.0, 3, '.', ''));
145145
if ($time === false) {
146-
throw new \RuntimeException('invalid timestamp: ' . $timestampMs);
146+
throw new \RuntimeException("invalid timestamp: $timestampMs");
147147
}
148148

149149
return $time;

0 commit comments

Comments
 (0)