Store the creationDate in LicenseData
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Sep 2023 13:23:42 +0000 (15:23 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Sep 2023 13:40:56 +0000 (15:40 +0200)
wcfsetup/install/files/lib/system/package/license/LicenseData.class.php

index 827feb1b59510869744c7a3f60a43c72a887db29..b5863e27fe2b9ac1d7f7ce567048b2576d0d94e6 100644 (file)
@@ -12,6 +12,8 @@ namespace wcf\system\package\license;
  */
 final class LicenseData
 {
+    public readonly \DateTimeImmutable $creationDate;
+
     /**
      * @param   array{
      *              authCode?: string,
@@ -29,6 +31,7 @@ final class LicenseData
         public readonly array $woltlab,
     )
     {
+        $this->creationDate = new \DateTimeImmutable();
     }
 
     public function getLicenseNumber(): ?string