SphereCommunity
serv.fromtime Script stopped working on new build - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: serv.fromtime Script stopped working on new build (/Thread-serv-fromtime-Script-stopped-working-on-new-build)



serv.fromtime Script stopped working on new build - ChaveS - 01-10-2013 01:42 AM

I was using this script on 2009 release, now im trying the last nightly build which made this script stop working:

Code:
args <tag.vip>
local.rticks = <SERV.RTICKS.FROMTIME <STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>>
IF <eval <serv.rticks> - <local.rticks>> >= 2592000
....

where tag.vip is 2013/01/01 00:00:00


and i have this
13:34:ERROR:(sys_vip.scp,421)Can't resolve <SERV.RTICKS.FROMTIME 01>

I found the issue

<STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>
was returning:
2013,01,09,13,49,25
new build:
<STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>
return:
01,0913,44,33

fixed...
"21-01-2011, MrSugarCube
- Fixed #1894: Explode function placing a comma at the beginning of the result."

No need for streat anymore:
<SERV.RTICKS.FROMTIME <EXPLODE /,<STRARG <ARGS>>>,<EXPLODE :,<STREAT <ARGS>>>> is working