Skip to content

Fix request timezone precedence during user enrichment#212

Merged
roncodes merged 2 commits into
mainfrom
feature/fix-request-timezone-precedence
May 11, 2026
Merged

Fix request timezone precedence during user enrichment#212
roncodes merged 2 commits into
mainfrom
feature/fix-request-timezone-precedence

Conversation

@roncodes
Copy link
Copy Markdown
Member

Summary

  • add shared IANA timezone helper
  • preserve request/browser timezone before backend IP lookup timezone
  • support whois.timezone and whois.time_zone.name candidates
  • avoid falling back to application/server timezone when no valid timezone exists

Verification

  • php -l src/Support/Timezone.php src/Models/User.php tests/Unit/TimezoneTest.php
  • vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no src/Models/User.php
  • vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no src/Support/Timezone.php
  • vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no tests/Unit/TimezoneTest.php
  • vendor/bin/pest --colors=always tests/Unit/TimezoneTest.php

Note: Pest passed, but emitted an existing sandbox warning writing vendor/pestphp/pest/.temp/test-results.

@roncodes roncodes merged commit 1679656 into main May 11, 2026
3 checks passed
@roncodes roncodes deleted the feature/fix-request-timezone-precedence branch May 11, 2026 08:17
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.

1 participant