Date Time attribute setting in appwrite console saves as UTC but should save as local
- 0
- Databases
- Web
I have a date time field and when I use console to save the data it is saved as local time because of using HTML input type date. But when we retrieve the data, we get it in ISO format with timezone: "2023-10-03T13:49:14.723+00:00" which is UTC by default. How to handle this?
Save & Retrieve as UTC, change the difference only on the client side as per the local timezone.
thanks. yeah need to do it like this but appwrite should not be saving like this if the server time is set to local timezone.
Incase for multiple servers, UTC helps in consistent date & time.
agree but the console is not showing the utc time and I presumed that I can add my local time date. hence the confusion.
You can create a new issue with this to discuss with the community and the team
it's best practice to send and retrieve as UTC and then show as local. that's exactly what the console does
Recommended threads
- Couldnt not do appwrite push tables
Not sure why i am not able to create my tables
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...