File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ function generateId(len) {
1414// getAukaTimestamp :: Void -> String
1515function getAukaTimestamp ( ) {
1616 const d = new Date ( ) ;
17- const fYear = d . getFullYear ( ) . toString ( )
18- const month = ( d . getMonth ( ) + 1 ) . toString ( )
19- const day = d . getDate ( ) . toString ( )
20- const hours = d . getHours ( ) . toString ( )
21- const minutes = ( parseInt ( d . getMinutes ( ) ) ) . toString ( )
22- const seconds = ( parseInt ( d . getSeconds ( ) ) ) . toString ( )
17+ const fYear = d . getUTCFullYear ( ) . toString ( )
18+ const month = ( d . getUTCMonth ( ) + 1 ) . toString ( )
19+ const day = d . getUTCDate ( ) . toString ( )
20+ const hours = d . getUTCHours ( ) . toString ( )
21+ const minutes = ( parseInt ( d . getUTCMinutes ( ) ) ) . toString ( )
22+ const seconds = ( parseInt ( d . getUTCSeconds ( ) ) ) . toString ( )
2323
2424 const fMonth = month . length == 2 ? month : `0${ month } `
2525 const fDay = day . length == 2 ? day : `0${ day } `
You can’t perform that action at this time.
0 commit comments