fixed date bug for not 7 day week