Skip to content

Commit

Permalink
fix(LeetCode): update elapsed timestamp (PreMiD#8461)
Browse files Browse the repository at this point in the history
* Update presence.ts

fixed timestamp

Signed-off-by: Varun Gotmare <[email protected]>

* Update presence.ts

Signed-off-by: Varun Gotmare <[email protected]>

* fix(LeetCode): update elapsed timestamp

Signed-off-by: Varun Gotmare <[email protected]>

* fix(LeetCode): update elapsed timestamp

Signed-off-by: Varun Gotmare <[email protected]>

* chore: bump version

Signed-off-by: Florian Metz <[email protected]>

---------

Signed-off-by: Varun Gotmare <[email protected]>
Signed-off-by: Florian Metz <[email protected]>
Co-authored-by: Florian Metz <[email protected]>
  • Loading branch information
VarunGotmare and Timeraa authored Jul 3, 2024
1 parent 53b8ea8 commit da2fc4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions websites/L/LeetCode/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"nl": "Verbeter uw codeervaardigheden en krijg snel een baan. Dit is de beste plek om uw kennis uit te breiden en u voor te bereiden op uw volgende sollicitatiegesprek."
},
"url": "leetcode.com",
"version": "1.0.20",
"version": "1.1.0",
"logo": "https://cdn.rcd.gg/PreMiD/websites/L/LeetCode/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/L/LeetCode/assets/thumbnail.png",
"color": "#f1a21a",
Expand All @@ -20,4 +20,4 @@
"education",
"developer"
]
}
}
2 changes: 1 addition & 1 deletion websites/L/LeetCode/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const presence = new Presence({
clientId: "719373053028728894",
}),
// time spent on current URL
timeElapsed: number = Date.now();
timeElapsed = Math.floor(Date.now() / 1000);

presence.on("UpdateData", async () => {
// default settings
Expand Down

0 comments on commit da2fc4c

Please sign in to comment.