Skip to content

Commit

Permalink
Merge pull request #3 from arajcany/patch-1
Browse files Browse the repository at this point in the history
Convert mtime to integer
  • Loading branch information
zaxbux authored Oct 10, 2022
2 parents fd32cf5 + 861c96f commit a15a83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Object/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public function setPartNumber($partNumber): File
public function lastModifiedTimestamp(?bool $milliseconds = true): ?int
{
if ($this->info) {
$t = $this->info->get(FileInfo::B2_FILE_INFO_MTIME, null);
$t = (int) $this->info->get(FileInfo::B2_FILE_INFO_MTIME, null);
return $milliseconds ? $t : round($t / 1000);
}

Expand Down

0 comments on commit a15a83b

Please sign in to comment.