final not = DateTime.now();
print(not.timeZoneName);
print(not.toIso8601String());
print(not.toLocal().toIso8601String());
so when we actually add a value in DateTime object in apwrite we actually converting the DateTime into ISO string. In my case, my timezone is philippines, but when adding it to appwrite it converts into a UTC timezone?
You should be sending it to Appwrite in UTC. So do toUTC() instead of toLocal()
Recommended threads
- Issue with relations on database
I'm creating a food ordering website for businesses. I'm having issues with the relations on my database I attached the attributes for the collections I'm hav...
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...