fixed wrong date for type=week