patch-src_client_util_util-date_vala 812 B

1234567891011121314151617
  1. $OpenBSD: patch-src_client_util_util-date_vala,v 1.1 2017/04/13 07:10:21 jasper Exp $
  2. Fix build with vala 0.36:
  3. error: Argument 1: Cannot convert from `GLib.TimeSpan' to `int'
  4. --- src/client/util/util-date.vala.orig Thu Apr 13 08:55:09 2017
  5. +++ src/client/util/util-date.vala Thu Apr 13 08:56:20 2017
  6. @@ -164,7 +164,7 @@ private string pretty_print_coarse(CoarseDate coarse_d
  7. return _("Now");
  8. case CoarseDate.MINUTES:
  9. - return ngettext("%dm ago", "%dm ago", (ulong) (diff / TimeSpan.MINUTE)).printf(diff / TimeSpan.MINUTE);
  10. + return ngettext("%dm ago", "%dm ago", (ulong) (diff / TimeSpan.MINUTE)).printf((int) (diff / TimeSpan.MINUTE));
  11. case CoarseDate.HOURS:
  12. int rounded = (int) Math.round((double) diff / TimeSpan.HOUR);