CRM-14986 fix for mishandled date fields