resolving bug where 12:30pm would display as 0:30pm thanks to a modulus operation