May i ask it's temporary/emergency passport or real passport that you obtained?
If real passport, bring your new passport + letter from embassy and go to nearest immigration (should be chaengwattana for tourist visa, visa-exempt i'm not sure) to re-stamp your passport. They have your record entry date on their computer
But i suggest you to talk with Canadian embassy staff for more correct information
If your respond about change/renewal passport in Kingdom. Maybe you're right.
First of all we don't know his nationality. That's why i've said MOSTLY because most of south asian country embassy here in Kingdom can't accept renewal/change passport without long-term visa and he said he entered without visa.
Also there's lack of information what reason he change to new passport. damaged? lost? expired?
let's said it's lost. So most of embassy will issue emergency/temporary passport that's mean the owner doesn't need to transfer any stamp on it
You can ask for emergency passport from high commission (embassy) then filling PC8 new passport application to replace emergency passport when arrived at home country, isn't ?
Emergency passport validty up to 12 months then you have no issue if you want to living here for another 5 weeks