Use global variable for the format of time