Update GalleryPosts.js

This commit is contained in:
Clay Nicholson 2024-08-13 11:59:44 -04:00 committed by GitHub
parent 6669559048
commit e80b5df186
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,6 @@ const BinPost = ({title = "Bin Post", desc = "Bin Project", slack = '', link = '
function handleClick() {
console.log("clicked");
if (typeof window !== 'undefined'){
const currentHost = window.location.host;
@ -23,7 +22,6 @@ const BinPost = ({title = "Bin Post", desc = "Bin Project", slack = '', link = '
}
function formatDate(dateString) {
console.log("date", date)
const inputDate = new Date(dateString);
const now = new Date();
const oneDay = 24 * 60 * 60 * 1000; // Number of milliseconds in one day