Skip to content
Prev Previous commit
Next Next commit
fix: store actually used mtime
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and mejo- committed Mar 29, 2023
commit 504ea272d08f80e485cb1adcff38184199747669
2 changes: 1 addition & 1 deletion lib/Service/DocumentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function autosave(?File $file, int $documentId, int $version, ?string $au
}
});
$document->setLastSavedVersion($stepsVersion);
$document->setLastSavedVersionTime(time());
$document->setLastSavedVersionTime($file->getMTime());
$document->setLastSavedVersionEtag($file->getEtag());
$this->documentMapper->update($document);
} catch (LockedException $e) {
Expand Down