Skip to content

[13.x] Convert the down --retry datetime to GMT - #62190

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
xurshudyan:down-retry-gmt
Oct 26, 2026
Merged

taylorotwell merged 1 commit into
laravel:13.xfrom
xurshudyan:down-retry-gmt

Conversation

@xurshudyan

Copy link
Copy Markdown
Contributor

#58509 added datetime support to down --retry, but the Retry-After header is formatted with DateTimeInterface::RFC7231, which appends a literal "GMT" without converting the time. In any app not running in UTC the header is off by the timezone offset:

APP_TIMEZONE=Europe/Berlin

php artisan down --retry="2026-12-31 15:30:00"

Retry-After: Thu, 31 Dec 2026 15:30:00 GMT   // should be 14:30:00 GMT

This uses Carbon's toRfc7231String(), which converts to GMT first.

@taylorotwell
taylorotwell merged commit 0ef381a into laravel:13.x Oct 26, 2026
64 checks passed
binaryfire added a commit to hypervel/components-backup that referenced this pull request Nov 3, 2026
Port the test from laravel/framework#62190 at 13.x revision b20bf7f442beabdb70e45cf9d29cd6c64675f856. DownCommand already formats the retry time with toRfc7231String(), which converts to GMT, so no source change is needed.

The upstream cases (a non-UTC default timezone with naive and offset datetimes) are merged into the existing named-timezone test. The test file passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants