Hotspot Users Expiring Before Their Allocated Time (RouterOS v7.17.2)

When you update something, you have to read the changelogs, otherwise what do you expect?

Even if RouterOS, as it sometimes does, converts or adjusts the various parameters, it cannot be expected to also correct hand-written scripts…

If you had read all the changelogs of RouterOS v6.x.x that you were using up to version 7.17.2 you would know why it doesn’t work for you.
http://forum.mikrotik.com/t/warning-routeros-v7-10-will-break-all-scripts-based-on-system-clock-get-date-or-other-date-s/166576/1

Who wrote that abomination of a so long one-line-script?
Ask whoever created that abomination to patch it for RouterOS 7.17.2