diff --git a/src/components/BlockViewer.js b/src/components/BlockViewer.js index 9c0d6e1..ec15142 100644 --- a/src/components/BlockViewer.js +++ b/src/components/BlockViewer.js @@ -1,20 +1,26 @@ -import React from "react"; +import React from 'react'; const Block = (obj) => { const thisEpoch = obj.time; var dateObj = new Date(0); dateObj.setUTCSeconds(thisEpoch); - const [thisDate, thisTime] = dateObj.toISOString().split('T'); + const thisLocalDate = dateObj.toLocaleString(); + const thisOffset = (-dateObj.getTimezoneOffset() / 60); return ( -
+

🔗

- - UTC ðŸ“…{thisDate} - {thisTime.split('.')[0]} + +

+ 📅 {thisLocalDate} +

+

+ ({thisOffset > 0 ? "+" : ""}{thisOffset}) +

) diff --git a/src/components/OrchInfoViewer.js b/src/components/OrchInfoViewer.js index 5ab5490..b77a78e 100644 --- a/src/components/OrchInfoViewer.js +++ b/src/components/OrchInfoViewer.js @@ -2,8 +2,6 @@ import React, { useState, useEffect } from 'react'; import Stat from "./statViewer"; import Address from "./OrchAddressViewer"; import { useSelector } from 'react-redux'; -import { Text } from "@mantine/core"; -import ScrollContainer from "react-indiana-drag-scroll"; import { Popover } from '@mantine/core'; function updateClipboard(newClip) {