mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-02-03 13:21:25 +02:00
fixed bug where date is displayed incorrectly in UI
This commit is contained in:
parent
99178f60a1
commit
f74dff6e1d
@ -8,7 +8,7 @@ class Save extends React.Component {
|
||||
let saveSize = parseFloat(this.props.save.size / 1024 / 1024).toFixed(3)
|
||||
let saveLastMod = Date.parse(this.props.save.last_mod);
|
||||
let date = new Date(saveLastMod)
|
||||
let dateFmt = date.getFullYear() + '-' + date.getMonth() + '-' + date.getDay() + ' '
|
||||
let dateFmt = date.getFullYear() + '-' + date.getMonth() + '-' + date.getDate() + ' '
|
||||
+ this.hours12(date) + ':' + date.getMinutes() + ':' + date.getSeconds();
|
||||
|
||||
return(
|
||||
|
Loading…
x
Reference in New Issue
Block a user