Vinoteca: модуль, шаблон и компоненты интернет-магазина вина на 1С-Битрикс

This commit is contained in:
jimagie committed 2026-10-22 19:28:52 +05:00
commit bb7d8af290
469 files changed
+26426

No files matched your search

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace Jinove\Vinoteca;
final class Consent
{
public const VERSION = "09.10.2026";
public const POLICY_VERSION = "22.10.2026";
public static function timestamp(string $version): int
{
$date = \DateTimeImmutable::createFromFormat("d.m.Y|", $version);
return $date ? $date->getTimestamp() : 0;
}
}