mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
Merge pull request #5385 from LibreSign/fix/timezone-of-preview
fix: timezone of preview signature stamp
This commit is contained in:
commit
e9e3d3709a
1 changed files with 4 additions and 3 deletions
|
|
@ -121,13 +121,14 @@ class SignatureTextService {
|
|||
];
|
||||
}
|
||||
if (empty($context)) {
|
||||
$date = new \DateTime('now', $this->dateTimeZone->getTimeZone());
|
||||
$context = [
|
||||
'DocumentUUID' => UUIDUtil::getUUID(),
|
||||
'IssuerCommonName' => 'Acme Cooperative',
|
||||
'LocalSignerSignatureDateOnly' => (new \DateTime())->format('Y-m-d'),
|
||||
'LocalSignerSignatureDateTime' => (new \DateTime())->format(DateTimeInterface::ATOM),
|
||||
'LocalSignerSignatureDateOnly' => ($date)->format('Y-m-d'),
|
||||
'LocalSignerSignatureDateTime' => ($date)->format(DateTimeInterface::ATOM),
|
||||
'LocalSignerTimezone' => $this->dateTimeZone->getTimeZone()->getName(),
|
||||
'ServerSignatureDate' => (new \DateTime())->format(DateTimeInterface::ATOM),
|
||||
'ServerSignatureDate' => ($date)->format(DateTimeInterface::ATOM),
|
||||
'SignerIP' => $this->request->getRemoteAddress(),
|
||||
'SignerCommonName' => $this->userSession?->getUser()?->getDisplayName() ?? 'John Doe',
|
||||
'SignerEmail' => $this->userSession?->getUser()?->getEMailAddress() ?? 'john.doe@libresign.coop',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue