Skip to content

Commit 63ac369

Browse files
committed
change dates of stable and alpha releases to ISO 8601 in api controller
1 parent fdaafad commit 63ac369

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎controllers/Api/v1/ReleaseApiController.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function latestStable(
2828
\json_encode(['release' => [
2929
'name' => $release->getName(),
3030
'tag' => $release->getTag(),
31-
'timestamp' => $release->getTimestamp()->format('Y-m-d'),
31+
'timestamp' => $release->getTimestamp()->format('c'), // ISO 8601 date
3232
'download_url' => $release->getDownloadUrl(),
3333
'size_in_bytes' => $release->getSizeInBytes(),
3434
]])
@@ -53,7 +53,7 @@ public function latestAlpha(
5353
'workflow_title' => $alpha_build->getWorkflowTitle(),
5454
'workflow_run_id' => $alpha_build->getWorkflowRunId(),
5555
'filename' => $alpha_build->getFilename(),
56-
'timestamp' => $alpha_build->getTimestamp()->format('Y-m-d'),
56+
'timestamp' => $alpha_build->getTimestamp()->format('c'), // ISO 8601 date
5757
'size_in_bytes' => $alpha_build->getSizeInBytes(),
5858
'download_url' => $_ENV['APP_ROOT_URL'] . '/download/alpha/' . \urlencode($alpha_build->getFilename())
5959
]])

0 commit comments

Comments
 (0)