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

The today() function doesn't return the current time value when local dates are used #9164

Open
JaneSjs opened this issue Dec 12, 2024 · 0 comments
Assignees

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Dec 12, 2024

T21087 - How do I set current Time for time field?
https://surveyjs.answerdesk.io/internal/ticket/details/T21087


https://github.com/surveyjs/survey-library/blob/1a60bc03fce816fccbc8d9d2c403c16aab7197e1/packages/survey-core/src/functionsfactory.ts#L311C10-L311C15

When settings.localization.useLocalTimeZone is enabled, the today() function is expected to return the current time value.

However, it always returns 12:00 AM. I expect it to return the same value as new Date().

View Demo

image

@JaneSjs JaneSjs added the bug label Dec 12, 2024
@andrewtelnov andrewtelnov self-assigned this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants