From c0077ccb6eb83175a9ed00ceab914e649166d52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 28 Oct 2024 15:11:04 +0900 Subject: [PATCH] cfmgrv4 init...4 --- app/Services/Cloudflare/AuditLogService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/Cloudflare/AuditLogService.php b/app/Services/Cloudflare/AuditLogService.php index c1066c2..db618ca 100644 --- a/app/Services/Cloudflare/AuditLogService.php +++ b/app/Services/Cloudflare/AuditLogService.php @@ -78,7 +78,9 @@ class AuditLogService extends CloudflareService log_message("notice", "\n----------Account {$account_entity->getTitle()}의 AuditLog 처리 시작-----------"); try { - $endpoint = sprintf("accounts/%s/audit_logs?since=%s", $account_entity->getPK(), date("Y-m-d")); + // 오늘 날짜의 ISO 8601 형식 문자열 생성 + $today = date('Y-m-d') . 'T00:00:00+00:00'; + $endpoint = sprintf("accounts/%s/audit_logs?since=%s", $account_entity->getPK(), $today); log_message("debug", "Auditlog Endpoint: " . $endpoint); $response = $this->getMySocket()->get($endpoint); $body = json_decode($response->getBody());