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 ( -
+ 📅 {thisLocalDate} +
++ ({thisOffset > 0 ? "+" : ""}{thisOffset}) +