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

make ToString() get local date #2789

Open
dannykentala opened this issue Dec 17, 2024 · 0 comments
Open

make ToString() get local date #2789

dannykentala opened this issue Dec 17, 2024 · 0 comments

Comments

@dannykentala
Copy link

Describe the bug
I am sending the data to the server directly but it is taking by default UTC time so it generates a bug when making a database filter with the date time, maybe is it because when parsing datetime it make it by default UTC ?

toString() { return this.$d.toUTCString() }

Expected behavior
Consider to put by default local datetime

Information

  • Day.js Version [e.g. v1.11.13]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome 62]
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant