We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactiveDate.toLocaleString
It just don't care.
Also applies to toLocaleDateString & toLocaleTimeString.
toLocaleDateString
toLocaleTimeString
<script> import { Date as ReactiveDate } from 'svelte/reactivity'; const regular = new Date(); const reactive = new ReactiveDate(); </script> {regular.toLocaleString()} <br> {regular.toLocaleString(undefined, { month: 'short' })} <br> {regular.toLocaleString('fr-FR')} <br> {regular.toLocaleString('fr-FR', { month: 'short' })} <br> <br> {reactive.toLocaleString()} <br> {reactive.toLocaleString(undefined, { month: 'short' })} <br> {reactive.toLocaleString('fr-FR')} <br> {reactive.toLocaleString('fr-FR', { month: 'short' })} <br>
Output:
3/15/2024, 3:59:01 PM Mar 15/03/2024 15:59:01 mars 3/15/2024, 3:59:01 PM 3/15/2024, 3:59:01 PM 3/15/2024, 3:59:01 PM 3/15/2024, 3:59:01 PM
REPL
No response
REPL - Svelte v5.0.0-next.79
annoyance
The text was updated successfully, but these errors were encountered:
svelte/packages/svelte/src/reactivity/date.js
Lines 69 to 89 in 3f7fcf9
Presumably the read methods we define here will also need to accept ...args like the write ones do.
read
...args
write
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
It just don't care.
Also applies to
toLocaleDateString
&toLocaleTimeString
.Reproduction
Output:
REPL
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: