Skip to content

fix: avoid appending empty cities suffix in formatTimeZone#325

Open
MatrixNeoKozak wants to merge 1 commit into
vvo:mainfrom
MatrixNeoKozak:fix/improvement-1782406836546
Open

fix: avoid appending empty cities suffix in formatTimeZone#325
MatrixNeoKozak wants to merge 1 commit into
vvo:mainfrom
MatrixNeoKozak:fix/improvement-1782406836546

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

In formatTimeZone.js, if mainCities contains no non-empty elements or is empty, the formatter previously still appended a trailing - hyphen delimiter. This proposed fix checks if there are any valid non-empty city strings in mainCities and conditionally formats the suffix to ensure correct timezone representation formatting without trailing hyphens.

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

Successfully merging this pull request may close these issues.

1 participant