sproutcore/sproutcore — pull request #871 by krotscheck (2012-12-09 22:27:05+00:00)
Title: Fixed Single-second edge case.

As promised, this fixes the edge case identified in the post-close comments on Pull Request https://github.com/sproutcore/sproutcore/pull/867 - to reiterate:

"Ok, so we (internally) identified a minor issue with this pull request, and that is in the edge case where the elapsed duration is exactly one second. The way the translation string is evaluated, it will try to find a string that terminates with "secondAgo" and or "secondIn", neither of which currently exists in the strings file or the unit tests. I'll fix it as soon as I'm back from vacation (sunday)."

Fix was to add the secondIn and secondAgo translation strings, and to adjust the unit tests to also test that particular edge case.