changeset c8e1378fca2a in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=c8e1378fca2a
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 a6ff0a4da00e -r c8e1378fca2a 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