flet-dev / flet-dev/flet

Include client's time zone as part of `Page` object

Open
#4,186 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature request
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:

We should pass two values from a dart client (which runs in the browser when app is a web app):

  • date.timeZoneName - string
  • date.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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.