Skip to content

Commit

Permalink
Update Project.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacon_Space committed Jan 6, 2024
1 parent 03071e8 commit 987df51
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Project.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,11 @@ <h6 class="card-subtitle text-muted"></h6>
.catch(error => console.error('Error fetching repositories:', error));
}

// Function to update the current year in the specified timezone
function updateCurrentYear() {
const currentYearElement = document.getElementById('current-year');
const timezone = 'America/Toronto'; // Specify your desired timezone here
const currentYear = new Date().toLocaleString('en-US', { timeZone: timezone, year: 'numeric' });
currentYearElement.textContent = `${currentYear}`;
// Update the current year in the specified timezone
const currentYearElement = document.getElementById('current-year');
const timezone = 'America/Toronto'; // Specify your desired timezone here
const currentYear = getCurrentYearInTimeZone(timezone);
currentYearElement.textContent = `${repositoryCreatedAt.getFullYear()} - ${currentYear}`;
}

// Fetch and render social links initially
Expand Down

0 comments on commit 987df51

Please sign in to comment.