changeset c6b375eaa0be in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=c6b375eaa0be
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 59de37a4871c -r c6b375eaa0be tryton/common/timedelta.py
--- a/tryton/common/timedelta.py        Mon Oct 17 23:40:52 2022 +0200
+++ b/tryton/common/timedelta.py        Wed Oct 26 23:32:27 2022 +0200
@@ -68,7 +68,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