Skip to content
Back

Datetime being returned with incorrect timezone offset.

  • 0
  • Databases
  • Flutter
  • Cloud
opbaba_
17 Dec, 2024, 03:38

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?

TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more