File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/typescript/main/core/impl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { padStart } from "../../util/StringUtil" ;
1
2
import { ArgumentFormatterType } from "../api/type/ArgumentFormatterType" ;
2
3
import { DateFormatterType } from "../api/type/DateFormatterType" ;
3
- import { padStart } from "../../util/StringUtil" ;
4
4
5
5
/**
6
6
* Default argument formatter function, used by the library, see {@link ArgumentFormatterType}.
@@ -29,6 +29,6 @@ export function formatDate(millisSinceEpoch: number): string {
29
29
const hours = padStart ( date . getHours ( ) . toString ( ) , 2 , "0" ) ;
30
30
const minutes = padStart ( date . getMinutes ( ) . toString ( ) , 2 , "0" ) ;
31
31
const seconds = padStart ( date . getSeconds ( ) . toString ( ) , 2 , "0" ) ;
32
- const millis = padStart ( date . getMilliseconds ( ) . toString ( ) , 2 , "0" ) ;
32
+ const millis = padStart ( date . getMilliseconds ( ) . toString ( ) , 3 , "0" ) ;
33
33
return `${ year } -${ month } -${ day } ${ hours } :${ minutes } :${ seconds } ,${ millis } ` ;
34
34
}
You can’t perform that action at this time.
0 commit comments