fixed handling of dates in metadata editor