some fixes with wopi

This commit is contained in:
2022-06-27 23:51:07 +02:00
parent 03bc94178f
commit 5432ce2b0f
4 changed files with 99 additions and 11 deletions

View File

@@ -17,11 +17,12 @@ use Chill\DocStoreBundle\Entity\StoredObject;
use Chill\DocStoreBundle\Exception\StoredObjectManagerException;
use DateTimeImmutable;
use DateTimeInterface;
use DateTimeZone;
use RuntimeException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\HttpClient\ResponseInterface;
use Throwable;
@@ -150,7 +151,8 @@ final class StoredObjectManager implements StoredObjectManagerInterface
$date = DateTimeImmutable::createFromFormat(
DateTimeImmutable::RFC7231,
$lastModifiedString
$lastModifiedString,
new DateTimeZone('GMT')
);
if (false === $date) {