Have you tried sysutils.datetostr(sysutils.date) to see if the correct functions are called? Maybe there is an overloaded function in your framework-units which does not work correct?