Skip to content

Commit 427644b

Browse files
authored
Merge pull request #12 from Multipage/main
Invalid date time of historic locations (1970)
2 parents f37c7f7 + 4df9935 commit 427644b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

googlefindmy-card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ class GoogleFindMyCard extends LitElement {
16021602
}
16031603

16041604
// Create popup matching Map View
1605-
const timestamp = new Date(loc.timestamp).toLocaleString();
1605+
const timestamp = new Date(loc.timestamp * 1000).toLocaleString();
16061606
const popupContent = `
16071607
<div style="min-width: 200px;">
16081608
<b>Location ${index + 1}</b><br>
@@ -2067,4 +2067,4 @@ console.info(
20672067
`%c GOOGLE-FINDMY-CARD %c Version 1.1.0 `,
20682068
'color: white; font-weight: bold; background: #1a73e8',
20692069
'color: #1a73e8; font-weight: bold; background: #f0f0f0'
2070-
);
2070+
);

0 commit comments

Comments
 (0)