Hi Paolo F.
All I can think of : is your (date/Time) field in yor ( realtime / table ) : “LogDateTime” or something else like “DateTime” or “logdatetime” etc.
Sorry aside from that, I am unsure., I am not in my office at present, about to have tea and off to bed.
I will look at scripts after work tomorrow night.
kind regards,