I am using an appwrite function to bring me certain information based on its date, but the problem is when I try to group them with Nodejs it takes the date as it is stored.
I need to get the time difference to make an exact calculation
I have appwrite version 1.3.4
Summary
There is a solution to this problem. You can try upgrading to version 1.4.6 and recreate the function using the new function syntax. Here are the steps:
1. Backup everything.
2. Upgrade to version 1.3.8 by running the following command:
```sh
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.3.8
```
3. Run the migrate command.
Drake
Oct 23, 2023, 16:55
not really sure what you mean...
Binyamin
Oct 23, 2023, 17:06
Are you trying to get the headers being sent to your 1.3.4 function?
MH7
Rank 2: Process
Oct 23, 2023, 18:46
@Binyamin Yes
Binyamin
Oct 23, 2023, 18:49
Headers aren't passed to the function in version 1.3.4 you'll need to upgrade to version 1.4.6 and recrete the function using the new function syntax.