Fixed get days in class functions