Datetimes sent to the server as timezone-naive #385
Labels
No Label
Blocked
Bug
Contributions welcome
Did not do
Errata
Feature request
Fixed
How To
Invalid
Needs design
No resolution
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Providers
Digital Ocean
Providers
Hetzner
Refactor
Severity
High
Severity
Low
Severity
Medium
Source
Community
Source
Core Team
Source
Stakeholders
Translations
Under investigation
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SelfPrivacy/selfprivacy.org.app#385
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Expected Behavior
When sending datetimes to the server, these should be timezone-aware, because the user and the server may be in different timezones. However, turns out that Dart's toIso8601String only adds timezone if the
DateTime
object is in UTC.Actual Behavior
Datetimes are sent to the server without timezone data.
Steps to Reproduce
Z
or timezone offset at the end of the datetime stringContext and notes
All Datetimes should be trasformed to UTC before sending to the server with
date.toUtc().toIso8601String()
. In some places, it is already used.Relevant log output
No response
App Version
0.9.1
Server API Version
2.4.2
Operating System
Android