When Lily enters Barney's apartment she says it is 7.22 in the morning but on the security cameras it says it's 7PM. This is not a continuous scene, as noted by the fact that the lights in other apartment buildings are now on and it runs concurrent to the Ted/Stella dinner date, so this time change is correct.
Barney's in-apartment camera shows the time as PM 19:47. PM with 7:47 show in military time is redundant. In military time any number after 11:59:59 is always recognized as being PM.