Skip to content

Missing ConvertDateToLocalTimezone parameter on TypeScriptClientGeneratorSettings and OpenApiToTypeScriptClientCommand #5085

@gabrielheming

Description

@gabrielheming

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions