Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use app_timezone() in Response and DownloadResponse when app timezone defined #1545

Conversation

samsonasik
Copy link
Member

If Application timezone defined in configuration, it will read the timezone defined instead of 'UTC'.

Checklist:

  • Securely signed commits

@@ -269,7 +269,7 @@ public function getReason(): string
*/
public function setDate(\DateTime $date)
{
$date->setTimezone(new \DateTimeZone('UTC'));
$date->setTimezone(new \DateTimeZone(app_timezone() ?? 'UTC'));

$this->setHeader('Date', $date->format('D, d M Y H:i:s') . ' GMT');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the app_timezone() is America/Sao_Paulo it is not GMT. See also.

@samsonasik
Copy link
Member Author

ok, i’m closing it.

@samsonasik samsonasik closed this Nov 27, 2018
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.

None yet

2 participants