Hello, for a start in the world of extension building, I have built an extension that shows the time now. The problem is that it does not update … it shows me when I entered the screen what time it is, and when the time changes it still shows the time I entered the screen! How can he present the time in an updated way? This is the code:
@SimpleFunction(description = "Get the time now")
public String GetTheTimeNow() {
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("HH:mm:ss");
LocalDateTime now = LocalDateTime.now();
return dtf.format(now);
}