From baaf0fa7cb99d150fc7149e6617cc13da2d58642 Mon Sep 17 00:00:00 2001 From: jin Date: Mon, 20 Nov 2023 15:51:30 +0300 Subject: [PATCH] $mol_time_moment: fixed usec serial --- time/moment/moment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/time/moment/moment.ts b/time/moment/moment.ts index 86edf07b5a7..0438c66bc8f 100644 --- a/time/moment/moment.ts +++ b/time/moment/moment.ts @@ -421,8 +421,8 @@ namespace $ { 'sss' : ( moment : $mol_time_moment )=> { if( moment.second == null ) return '' - const millisecond = Math.floor( ( moment.second - Math.floor( moment.second ) ) * 1000 ) - return String( 1000 + millisecond ).slice(1) + const millisecond = ( moment.second - Math.trunc( moment.second ) ).toFixed( 3 ) + return millisecond.slice(2) }, 'Z' : ( moment : $mol_time_moment )=> {