Include client's time zone as part of `Page` object
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Discussed in https://github.com/flet-dev/flet/discussions/4175
More about time zone in Flutter:
- https://stackoverflow.com/questions/13/determine-a-users-timezone
- https://api.dart.dev/stable/3.5.4/dart-core/DateTime/timeZoneOffset.html
We should pass two values from a dart client (which runs in the browser when app is a web app):
date.timeZoneName- stringdate.timeZoneOffset- Duration
On Python side we create Flet implementation of datetime.tzinfo class which requires offset, DST adjustment (not sure about that) and zone name.
Later on in a user code tzinfo can be used with datetime, e.g. datetime.datetime.now(tz)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Page object from the Dart client, including the browser client path, to its Python-side representation. Then review how the two timezone values—name and offset—could support the requested Python datetime.tzinfo behavior; done means client timezone information is available for user code. No files or tests are named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, python
- Domain
- backend-api-design, full-stack
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100