mirror of
https://github.com/LucasVbr/notion-widgets.git
synced 2026-05-13 17:21:55 +00:00
feat(clock): Add Day, Month and Year
This commit is contained in:
@@ -21,6 +21,7 @@ export const data = {
|
||||
setInterval(() => {
|
||||
const now = new Date();
|
||||
displayElement.innerText = now.toLocaleTimeString(language);
|
||||
dayElement.innerText = now.toLocaleDateString(language, {weekday: 'long'});
|
||||
dayElement.innerText = now.toLocaleDateString(language,
|
||||
{weekday: 'long', year: 'numeric', month: 'long', day: '2-digit'});
|
||||
}, 1000);
|
||||
</script>
|
||||
Reference in New Issue
Block a user