I’ve been using the below binding which I found on this forum a while back to convert a date to an easy-to-read format such as “1 day ago”, “1 hour ago”, etc. It has been working completely fine from Wappler 3.9.9 and through the Wappler 4.0 betas, however, after I have upgraded to 4.0 and save any page which contains it, it updates the expression which results in it no longer being recognized as an expression, thus, just printing it to the page.
It goes from:
{{date.minutesUntil(datetime.datetime) > 1440 ? date.daysUntil(datetime.datetime) + ' days ago' : date.minutesUntil(datetime.datetime) >= 60 ? date.hoursUntil(datetime.datetime)+' hours ago': date.minutesUntil(datetime.datetime)+' minutes ago'}}
To:
{{date.minutesUntil(datetime.datetime) > 1440 ? date.daysUntil(datetime.datetime) + ' days ago' : date.minutesUntil(datetime.datetime) >= 60 ? date.hoursUntil(datetime.datetime)+' hours ago':
date.minutesUntil(datetime.datetime)+' minutes ago'}}
Both of the above have been copied directly from the code editor. For whatever reason, it is forcing a new line as you can see in the example above which completely breaks it, and I can’t seem to find a way to save it without it breaking without reverting to the beta.