ISODate local = new ISODate(localDate);
ISODate remote= new ISODate(remoteDate);
//--- accept if remote date is greater than local date
return (remote.timeDifferenceInSeconds(local) > 0);
}
//--------------------------------------------------------------------------
//---
//--- Variables