a function to remove time zone form date time strings