Bugfix in conversion of dates and timestamps.