Set the late-hours rule for each job
Set the hours that count as night work for a job, then log the shift as it actually happened. A warehouse worker finishing at 2 a.m. and a nurse beginning at 7 p.m. can both see where their selected night window meets the shift.
The time stays one continuous record, which makes an overnight day easier to read when you return to it later.