Skip to content

Commit

Permalink
change time display
Browse files Browse the repository at this point in the history
  • Loading branch information
technonerdz authored Mar 2, 2024
1 parent 904aeb8 commit 5ca6220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<script defer src="js/live.js?nc=2.7"></script>
<script defer src="js/live.js?nc=2.8"></script>
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.red-yellow.min.css" />
<link rel="stylesheet" href="css/live.css?nc=2.3">

Expand Down
4 changes: 2 additions & 2 deletions js/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ function dateToText(d){
let dateText = "";

if ((new Date()).getDate() != d.getDate()) {
dateText += d.toLocaleDateString("fr-CA", { month: 'long', day: 'numeric'}) + " ";
dateText += d.toLocaleDateString("fr-CA", { month: 'long', day: 'numeric'}) + " à ";
}

dateText += "à " + d.getHours() + ":" + ('0' + d.getMinutes()).slice(-2);
dateText += d.getHours() + ":" + ('0' + d.getMinutes()).slice(-2);

return dateText;

Expand Down

0 comments on commit 5ca6220

Please sign in to comment.