The Shiva ends after shacharit on the seventh day. When does shloshim end? After shacharit or after minchah of the 30th day?
Just as the seventh day of mourning ends at the beginning of the day, same is for the thirtieth day of mourning ends with sunrise. [Shulchan Aruch YD 395:1]