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" ;
12import { ArgumentFormatterType } from "../api/type/ArgumentFormatterType" ;
23import { DateFormatterType } from "../api/type/DateFormatterType" ;
3- import { padStart } from "../../util/StringUtil" ;
44
55/**
66 * Default argument formatter function, used by the library, see {@link ArgumentFormatterType}.
@@ -29,6 +29,6 @@ export function formatDate(millisSinceEpoch: number): string {
2929 const hours = padStart ( date . getHours ( ) . toString ( ) , 2 , "0" ) ;
3030 const minutes = padStart ( date . getMinutes ( ) . toString ( ) , 2 , "0" ) ;
3131 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" ) ;
3333 return `${ year } -${ month } -${ day } ${ hours } :${ minutes } :${ seconds } ,${ millis } ` ;
3434}
You can’t perform that action at this time.
0 commit comments