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

UTC Time from timestamp #4668

Merged
merged 1 commit into from
May 11, 2021
Merged

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented May 11, 2021

Description
Fixes #3951. The test case for this was actually incorrect, since strtotime() uses the current default timezone. I confirmed that fixing the test case broke the previous implementation, and the update implementation passes the fixed test.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • n/a User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan merged commit 31a41d5 into codeigniter4:develop May 11, 2021
@MGatner MGatner deleted the time-utc branch May 11, 2021 11:49
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.

Bug: Time::createFromTimestamp() uses default timezone, not UTC for timestamp
3 participants