Fix bug in data_updated field parsing

The dates were not properly sorted and the first one found on the file
was used, not the most recent one. Also check if dates are not in the
future.