Fixed string.FormattedTime returning incorrectly in some cases