After a fresh reload to the 0.7.3 the previous Space-Script are non “registered”.
Precedentemente usavo la funzione DaysTillDate.
I have reloaded the system and also re-indexed .
Any idea what to search / investigate?
Thanks
Marco
After a fresh reload to the 0.7.3 the previous Space-Script are non “registered”.
Precedentemente usavo la funzione DaysTillDate.
I have reloaded the system and also re-indexed .
Any idea what to search / investigate?
Thanks
Marco
Can you share the space-script
itself?
do you also get any errors in the browser inspect console?
I use DaysTillDate and it works for me.
You can see it below.
NOTE: I did update the signature but, as @zef mentioned in the Changelog, the original script should also work.
```space-script
silverbullet.registerFunction({name: "daysTillDate"},(date) => {
const parsedDate = Temporal.PlainDate.from(date)
const now = Temporal.Now.plainDateISO();
return now.until(parsedDate, { largestUnit: 'days' }).days
})
```
Help: Version
that you are on the latest one?Things that i will normally check, because often i make mistakes:
daysTillDate
That was my mistake!
Now is working!
Thanks
Marco