Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Fixes DateTime formatter for different timezones #116

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Fixes DateTime formatter for different timezones #116

merged 1 commit into from
Sep 24, 2019

Conversation

michalbundyra
Copy link
Member

When default timezones changes between formatter calls the new default
timezone should be used.

Internally, for optimisation purposes, formatter was stored in hash array,
but the hash was generated without timezone.

Fixes #98

  • Are you fixing a bug?
    • Detail how the bug is invoked currently.
    • Detail the original, incorrect behavior.
    • Detail the new, expected behavior.
    • Base your feature on the master branch, and submit against that branch.
    • Add a regression test that demonstrates the bug, and proves the fix.
    • Add a CHANGELOG.md entry for the fix.

When default timezones changes between formatter calls the new default
timezone should be used.

Internally, for optimisation purposes, formatter was stored in hash array,
but the hash was generated without timezone.

Fixes #98
@michalbundyra michalbundyra added this to the 2.9.1 milestone Sep 22, 2019
michalbundyra added a commit that referenced this pull request Sep 24, 2019
Fixes DateTime formatter for different timezones
michalbundyra added a commit that referenced this pull request Sep 24, 2019
michalbundyra added a commit that referenced this pull request Sep 24, 2019
@michalbundyra michalbundyra merged commit 54dea19 into zendframework:master Sep 24, 2019
michalbundyra added a commit that referenced this pull request Sep 24, 2019
@michalbundyra michalbundyra deleted the hotfix/different-timezone branch September 24, 2019 12:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DateFormat with timezone change.
2 participants