Fixed homepage dates not working properly