Skip to content

Commit

Permalink
Merge pull request #144 from farski/use-local-time-picker
Browse files Browse the repository at this point in the history
Default date picker to local time zone
  • Loading branch information
tphakala authored May 5, 2024
2 parents 8ab36fb + 864a0ec commit c4ff98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
// Set the date picker to today's date
setTimeout(function () {
var datePicker = document.getElementById('datePicker');
var today = new Date().toISOString().split('T')[0];
var today = new Date().toLocaleString('sv').split(' ')[0];
datePicker.value = today;
}, 0); // Set timeout for 0ms

Expand Down

0 comments on commit c4ff98a

Please sign in to comment.