[BUGFIX] Recognising depreacated records didn't work

The code for recognising deprecated records was not working properly
because timestamps got resolved (formatted) and so couldn't get used
in max() call to determine the latest change.