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

Missing ConvertDateToLocalTimezone parameter on TypeScriptClientGeneratorSettings and OpenApiToTypeScriptClientCommand #5085

Open
gabrielheming opened this issue Jan 9, 2025 · 0 comments

Comments

@gabrielheming
Copy link

gabrielheming commented Jan 9, 2025

Describe the bug

Following this PR, the parameter ConvertDateToLocalTimezone was added to configure whether the DateOnly conversion should be to local or no. However, the parameter does not exists on the settings TypeScriptClientGeneratorSettings and also does not exists on OpenApiToTypeScriptClientCommand.

The lack of that configurable makes it impossible to work with DateOnly parameters when the native Date object is being used and the current user is on negative timezone offset.

Version used

Tested with version 14.2.0 from npm

Expected behavior

When this parameter is set to true, DateOnly conversion should use the method parseDateOnly that converts the Date to the local time zone.

@gabrielheming gabrielheming changed the title Missing ConvertDateToLocalTimezone parameter from OpenApiToTypeScriptClientCommand Missing ConvertDateToLocalTimezone parameter from TypeScriptClientGeneratorSettings Jan 9, 2025
@gabrielheming gabrielheming changed the title Missing ConvertDateToLocalTimezone parameter from TypeScriptClientGeneratorSettings Missing ConvertDateToLocalTimezone parameter on TypeScriptClientGeneratorSettings and OpenApiToTypeScriptClientCommand Jan 9, 2025
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