Fix dispatcher timezone: use local time to match datetime-local form input

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-06-03 17:45:28 +03:00
parent ac5c262bfb
commit 30d2b53075

View file

@ -14,7 +14,7 @@ require ROOT . '/lib/bootstrap.php';
$lock = fopen(sys_get_temp_dir() . '/hackman_social.lock', 'c');
if (!$lock || !flock($lock, LOCK_EX | LOCK_NB)) exit(0);
$now = gmdate('Y-m-d H:i:s');
$now = date('Y-m-d H:i:s');
$stmt = $db->prepare("
SELECT t.id AS target_id, t.post_id, t.project_id, t.platform, t.target_key, t.include_image,