Skip to content

Fix: Correctly format countdown string#4

Open
DealsBeam wants to merge 2 commits into
ShaigroRB:mainfrom
DealsBeam:fix-date-format-bug
Open

Fix: Correctly format countdown string#4
DealsBeam wants to merge 2 commits into
ShaigroRB:mainfrom
DealsBeam:fix-date-format-bug

Conversation

@DealsBeam

Copy link
Copy Markdown

The dateToEndsInXdYhZm function was producing a countdown string with a leading space when one of the time components (days, hours) was zero.

This commit fixes the issue by filtering out empty time components before joining them into a string.

A permanent test case has been added to verify the fix.

google-labs-jules Bot and others added 2 commits October 31, 2025 16:06
The dateToEndsInXdYhZm function was producing a countdown string with a leading space when one of the time components (days, hours) was zero.

This commit fixes the issue by filtering out empty time components before joining them into a string.

A permanent test case has been added to verify the fix.
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