string.FormattedTime fixes

Fixes string.FormattedTime returning odd numbers in certain circumstances.