fix for copying date attributes