I have a problem when I want to put the date and time on my website because the clock is with the time of entry but the time does not advance, can someone help me?
Hello I found the solution, I created a javascript and in outsystems in the block I put an Onready function inside this a java script and in a container place some html fields where the javascrit will place the values, it is important that when naming the fields go to the browser viewer with which the name is left and place that value in the javascript I will attach some imagesThank you
Gracias
Hi Ivan,
As you said, using CurrDateTime() in an expression will print you the DateTime when the server was contacted. This way, it will become a static value without update.
You should look into this ready-to-use component:
https://www.outsystems.com/forge/component-overview/549/javascript-clock
However, you can see how it is built and adapt as you desire. After all you just need to refresh the expression and you can achieve that by using a setinterval in javascript.
Best regards,
João Delgado
As João said this component wasn't build to accomplish what you want. If his answer helped you solve your problem can you mark it as solution.
Thanks.
Regards,
Marcelo