From f6801da8a0812e6f5fc7be531ac3a16689f5c899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 Oct 2022 23:32:27 +0200 Subject: [PATCH] Format timedelta microseconds using locale issue11741 review412061003 (grafted from 1b1b11be474fbec7dfe1fb16e364e833661ce93f) --HG-- branch : 6.0 --- tryton/common/timedelta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/common/timedelta.py b/tryton/common/timedelta.py index 455df339ff..208083b2cb 100644 --- a/tryton/common/timedelta.py +++ b/tryton/common/timedelta.py @@ -70,7 +70,7 @@ def format(value, converter=None): if not any(values[-3:]): # Add space if no time text += ' ' - text += ('%.6f' % value)[1:] + text += locale.format_string('%.6f', value)[1:] return text