opbaba_Original post
Rank 2: Process
I have noticed that the time being returned in flutter sdk is with 0 offset i.e is UTC when on the console its being shown as local time.
How to reproduce:
Created an attribute with
DateTime.now().toISO8601String
Eg. 9:00 AM Local (+5:30).
When you retrive this document the date is returned as
9:00 AM UTC (+0:00)
Can anyone tell this is expected behaviour or bug?
Summary
Developers are seeing the issue where DateTime objects are returned with incorrect timezone offsets in Flutter SDK. The datetime appears as UTC instead of the expected local time. This might be a bug.