VID-1273: check if getNearestDate being used on homepae or admin