
TypeScript
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?
TL;DR
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().
You should be sending it to Appwrite in UTC. So do toUTC() instead of toLocal()
Recommended threads
- Realtime Disconnects and Error: INVALID_...
Hi Support, we are still experiencing the issue and we are a subscriber on your platform under the account of charlesbcalague@gmail.com I just want to ask here...
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
