fix: set lang=en-GB on html root to force dd/mm/yyyy and 24h inputs
The previous fix updated JavaScript date formatting functions to use en-GB locale, but native <input type="date"> and <input type="datetime-local"> elements render their placeholder/display format based on the HTML document's lang attribute, not JavaScript. Changing lang="en" to lang="en-GB" on the root <html> element fixes all 15+ date/time inputs across the app in one place.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" data-theme="">
|
<html lang="en-GB" data-theme="">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
|
|||||||
Reference in New Issue
Block a user