29.01.2024, 13:58
Use this:
Code:
datetime = items[ 1 ]
year, month, day, hour, minute, second = datetime:match('(%d+)%-(%d+)%-(%d+)T(%d+):(%d+):(%d+)')
date = { year = year, month = month, day = day }
time = { hour = hour, minute = minute, second = second }
grp.checkupdate('0/0/1', date)
grp.checkupdate('0/0/2', time)