Skip to content
New issue

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

chore: input[type=date], the modifier number could converted to a timestamp #12396

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shengxj1
Copy link

@shengxj1 shengxj1 commented Nov 14, 2024

when an input element with type="date" or "datetime-local", the modifier number converts 2023-07-01T20:00 and 2023-07-01 to 2023, which is a bit odd and would make sense if it could be converted to a timestamp

String(new Date())
> 'Sat Jul 01 2023 22:19:11 GMT+0800 (China Standard Time)'
Number(new Date())
> 1688221156086

Preview

@edison1105 edison1105 added scope: v-model wait changes 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. scope: v-model wait changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants