From bf2d0a684fa4c05fb863bb582e288ac91f7e0358 Mon Sep 17 00:00:00 2001 From: Floris Huetink Date: Thu, 11 May 2023 11:11:31 +0200 Subject: [PATCH] Format zero Durations as "0 seconds" instead of "0 microseconds" --- lib/format/duration/formatters/humanized.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/format/duration/formatters/humanized.ex b/lib/format/duration/formatters/humanized.ex index 0ea172e8..fde6c594 100644 --- a/lib/format/duration/formatters/humanized.ex +++ b/lib/format/duration/formatters/humanized.ex @@ -98,7 +98,7 @@ defmodule Timex.Format.Duration.Formatters.Humanized do end defp deconstruct({0, 0}, []), - do: deconstruct({0, 0}, microsecond: 0) + do: deconstruct({0, 0}, second: 0) defp deconstruct({0, 0}, components), do: Enum.reverse(components)