Fixed to work better with international time formats (24 hour)

The value of t4 can be either "am" "pm" or "" (blank) the if statement simple assumes that if it is not am, then it must be pm.

In the event of a 24 hour time, the function will add an additional 12 hours because of the lacking am/pm text.