Skip to content

Fix local timezone resolution in main.dart - #3

Merged
syed-reza98 merged 1 commit into
CodeStorm-Hub:fable-review-fixfrom
syed-reza98:fable-review-fix
Jul 17, 2026
Merged

Fix local timezone resolution in main.dart#3
syed-reza98 merged 1 commit into
CodeStorm-Hub:fable-review-fixfrom
syed-reza98:fable-review-fix

Conversation

@syed-reza98

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 17, 2026 20:52
@syed-reza98
syed-reza98 merged commit 8a67882 into CodeStorm-Hub:fable-review-fix Jul 17, 2026
1 check failed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes local timezone initialization during app startup by passing the timezone string returned by FlutterTimezone.getLocalTimezone() directly into the timezone package’s getLocation(...), ensuring tz.setLocalLocation(...) resolves correctly.

Changes:

  • Replace incorrect localTimezone.identifier access with direct use of localTimezone string.
  • Keep existing fallback behavior (log + UTC) when timezone resolution fails.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants