make the min time diff an arg to deal with time zone issues