Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed dates
  • Loading branch information
zjf19002 committed Dec 4, 2023
1 parent e1a1b7a commit 6392e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class_registration_app/src/components/RateProfessor.vue
Expand Up @@ -71,7 +71,7 @@ import { AWSCloudWatchProvider } from 'aws-amplify';
dislikes.textContent = "Dislikes: " + review.dislikes.split(",").length.toString()
let timestamp = document.createElement('h2');
var date = new Date(parseInt(review.timestamp) * 1000);
var date = new Date(review.timestamp);
timestamp.textContent = date.toDateString()
div.appendChild(professor)
Expand Down

0 comments on commit 6392e24

Please sign in to comment.