Get last message time properly