Skip to content

Commit 2dd7643

Browse files
fix audit
1 parent fe44f93 commit 2dd7643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/ElasticsearchClusterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ public function audit(Request $request, string $elasticsearchUsername, string $e
592592

593593
if ('basic' != $license['type'] && true === isset($license['expiry_date_in_millis'])) {
594594
$now = (new \Datetime());
595-
$expire = new \Datetime(date('Y-m-d H:i:s', intval(substr($license['expiry_date_in_millis'], 0, -3))));
595+
$expire = new \Datetime(date('Y-m-d H:i:s', intval(substr(strval($license['expiry_date_in_millis']), 0, -3))));
596596
$interval = $now->diff($expire);
597597

598598
if (30 > $interval->format('%a')) {

0 commit comments

Comments
 (0)