Skip to content

Commit

Permalink
round
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Dec 12, 2023
1 parent c46ae3d commit 2571940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function actionCreateAsset(): Response
$elementsService = Craft::$app->getElements();
$lastModifiedMs = (int) $this->request->getBodyParam('lastModified');
$dateModified = $lastModifiedMs
? DateTime::createFromFormat('U', (string)($lastModifiedMs / 1000))
? DateTime::createFromFormat('U', (string) floor($lastModifiedMs / 1000))
: new DateTime();

if (!$filename) {
Expand Down

0 comments on commit 2571940

Please sign in to comment.