fix: formatDate working with timezone code
This commit is contained in:
parent
0429563e42
commit
78a4c9f267
8 changed files with 17 additions and 25 deletions
|
|
@ -215,11 +215,7 @@ const MachineDetailsRow = ({ it: machine, onActionSuccess, timezone }) => {
|
|||
<Label>Paired at</Label>
|
||||
<span>
|
||||
{timezone &&
|
||||
formatDate(
|
||||
machine.pairedAt,
|
||||
timezone.dstOffset,
|
||||
'YYYY-MM-DD HH:mm:ss'
|
||||
)}
|
||||
formatDate(machine.pairedAt, timezone, 'YYYY-MM-DD HH:mm:ss')}
|
||||
</span>
|
||||
</Item>
|
||||
<Item xs={6}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue