backpatch fix for changing datestyle before copy