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

Fix GH-12618: Changed to specify time zone correctly #12637

Closed
wants to merge 2 commits into from

Conversation

SakiTakamachi
Copy link
Member

Closes #12618

@@ -38,19 +38,19 @@ function printFormat(int $dateFormat, int $timeFormat, DateTimeImmutable $time)
}

function getToday(): DateTimeImmutable {
return new DateTimeImmutable();
return new DateTimeImmutable("now", new DateTimeZone("America/Los_Angeles"));
Copy link
Member

Choose a reason for hiding this comment

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

I think you can just do date_default_timezone_set('America/Los_Angeles'); at the top of the file.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you!
I changed in f834815

@iluuu1994 iluuu1994 closed this in 6a43135 Nov 10, 2023
@iluuu1994
Copy link
Member

Thanks @SakiTakamachi!

@SakiTakamachi SakiTakamachi deleted the fix/gh-12618 branch November 21, 2023 07:18
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