Back

updating document with datetime fields using console

  • 0
  • General
subroto
18 Apr, 2023, 11:40

So i have a document with four datetime fields, and i'm updating from the console... for just one of them... unfortunately this action causes the remaining three fields to get upated as well with the current datetime. I set the attribute to not required. So the expected behavior is for it to stay null as it was. Is there something that I miss for this seems like a bug.

Clearing the datetime fields with empty value and click update is the same. After updating the document the values in the datetime persists with new current datetime value.

I think this only happens via the console right ? When updating using API it won't touch the remaining datetime fields ?

TL;DR
The user is experiencing an issue when updating a document with datetime fields using the console in Appwrite 1.2.0. When updating one datetime field, the remaining fields also get updated with the current datetime. The user expects the other fields to stay null as they were before. The user wonders if this is a bug and if this issue only occurs in the console and not when updating using the API.
joeyouss
18 Apr, 2023, 11:50

Hi - let me check if this is the expected behaviour

Arman
18 Apr, 2023, 15:21

Trying to replicate your issue, can you tell me the version of appwrite you are using πŸ˜„

subroto
18 Apr, 2023, 17:31

i am using appwrite 1.2.0

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