Fix activation checks across start-date boundaries (#395)

This commit is contained in:
Fabian
2026-10-18 07:20:26 +03:00
committed by GitHub
parent 7f24c4ffdf
commit 17acbd3bc0
5 changed files with 276 additions and 12 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ class Account {
global $database;
// ==================== VERIFICARE DATA DE START A SERVERULUI ====================
if (START_DATE < date('d.m.Y') || (START_DATE === date('d.m.Y') && START_TIME <= date('H:i'))) {
if (\App\Utils\DateTime::hasServerStarted(START_DATE, START_TIME)) {
// Caută codul de activare în tabela activate
$code = trim($_POST['id'] ?? '');