Time on menu bar not updating

I added a time widget on the menu bar, using the code:
set t to (time string of (current date))
I've set it to update every second, but it doesn't. why is this?

Nothing but this line?
Maybe you want not only set a variable, but also return it..

how do I do that?

return (time string of (current date))

Nur why not just use the time from macOS? :face_with_raised_eyebrow:

I wanted to colour it. I previsouly used iStats but im not willing to pay for it