Advance game time script stopped working

Hey, so I got on my computer today, and was messing around with the game time, and found that the script stopped working here is the Script 
Did the script work for you before in that project?


If yes, either an added other script or a problematic configuration (like a switch that has been assigned twice) broke it.


If no, if it never worked for you, then you most probably have something wrong in the configuration.


In both cases, we need to see screenshots of the events where you try to use that script to detect what is wrong.
It doesn't use events, or at least when It worked before, I never used them
you need event commands to get the data, and it provides script commands to be used in the events.

Original thread: https://forums.rpgmakerweb.com/threads/advance-game-time-script-stopped-working.61594/