Any diesel techs out there
I'm no diesel mechanic, but with gas engines, there are two common problems when it comes to hard starting.
1. bad coolant temp sensor giving wrong temp to ECU.
2. low fuel pressure, due to bad pump, bad pressure regulator, clogged filter, poor ground connection at fuel pump, (I think your diesel uses a mechanical pump?) or leaking injector.