fixes #6050 Problems with the datetime field in structures modified