changeset b3069fac130b in tryton:6.4
details: https://hg.tryton.org/tryton?cmd=changeset&node=b3069fac130b
description:
        Format timedelta microseconds using locale

        issue11741
        review412061003
        (grafted from 1b1b11be474fbec7dfe1fb16e364e833661ce93f)
diffstat:

 tryton/common/timedelta.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3ba41937f78d -r b3069fac130b tryton/common/timedelta.py
--- a/tryton/common/timedelta.py        Sat Oct 22 01:05:13 2022 +0200
+++ b/tryton/common/timedelta.py        Wed Oct 26 23:32:27 2022 +0200
@@ -70,7 +70,7 @@
         if not any(values[-3:]):
             # Add space if no time
             text += ' '
-        text += ('%.6f' % value)[1:]
+        text += locale.format_string('%.6f', value)[1:]
     return text
 
 

Reply via email to