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 )=> {