Skip to content

Commit

Permalink
Removed JavaScript console logging left in by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
johntopleyons committed Sep 5, 2024
1 parent f5c9edc commit 24786e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions webapp/public/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ $(document).ready(function() {
dateElements.forEach(element => {
const utcDateStr = element.textContent.trim();
const localDateStr = parseAndConvertToLocalTime(utcDateStr + ':00');
console.log(`localDateStr = ${localDateStr}`);

element.textContent = localDateStr;
});
Expand All @@ -29,10 +28,7 @@ $(document).ready(function() {
const dateObj = new Date(formattedUTCDate);
const datePart = dateObj.toLocaleDateString('en-GB', { day: 'numeric', month: 'short', year: 'numeric' });
const timePart = dateObj.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit', hour12: false });

console.log(`datePart = ${datePart}`);
console.log(`timePart = ${timePart}`);


return `${datePart} ${timePart}`;
}

Expand Down

0 comments on commit 24786e1

Please sign in to comment.