Mosh OntongOriginal post
Rank 5: Hypervisor
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?
Summary
The user is asking how to handle timezones correctly when using the DateTime object in Appwrite. The solution is to send the DateTime object to Appwrite in UTC format by using the toUTC() function instead of toLocal().