Fixing bug in get_month_end() when month is < 10