ソースを参照

display singular times in the past correctly

Lucas Stadler 11 年 前
コミット
067cb29596
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      elm/PrettyDate.elm

+ 1 - 1
elm/PrettyDate.elm

@ -47,7 +47,7 @@ format relativeTime =
47 47
format' prefix suffix unit n =
48 48
    let (singular, plural) = stringForm unit
49 49
    in if n == 1
50
       then prefix ++ singular
50
       then prefix ++ singular ++ suffix
51 51
       else prefix ++ toString n ++ " " ++ plural ++ suffix
52 52
53 53
toRelativeTime : Float -> RelativeTime