Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime is parsed as local time #132

Open
Anders55 opened this issue Mar 20, 2021 · 0 comments
Open

DateTime is parsed as local time #132

Anders55 opened this issue Mar 20, 2021 · 0 comments

Comments

@Anders55
Copy link

When using DateTime.parse to read positions from JSON the timestamp is read as local time, not in UTC. This can cause errors when calculating effort etc.

image

The problem is related to this issue:
dart-lang/sdk#37420

Need better general handling to solve this, migt need to be handled in data layer and backend as well.
One way might be to handle timestamp without Z as UTC.
This could be defined in the API.
The app should do the same when data is created offline.

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

No branches or pull requests

1 participant