Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duration of 60 seconds or less formats as empty string #226

Open
andrzejpolis opened this issue Aug 31, 2021 · 0 comments
Open

Duration of 60 seconds or less formats as empty string #226

andrzejpolis opened this issue Aug 31, 2021 · 0 comments

Comments

@andrzejpolis
Copy link

When I try to format duration of 60 seconds or less it gives me empty string regardless of locale.

        val seconds = 30L
        val locale = Locale("en", "US")
        val t = PrettyTime(Date(1000 * seconds), locale)
            .calculatePreciseDuration(Date(0))
        val result = PrettyTime(locale).formatDurationUnrounded(t)

        assertThat(result).isEqualTo("30 seconds")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant