Display relative time as signal
Hi,
I want to display the relative time of a date. I have this file:
but if i run the
Thanks!
I want to display the relative time of a date. I have this file:
but if i run the
relativeTimeFromDates(new Date(2024, 9, 19, 14, 30)) inside of the html part it does not update when a minute more has passed and the output of the function should change. Solid does not react to this. How can i fix this? Do i need to wrap the function in something?Thanks!