Skip to content

fix: correct date format in formatEventDateRange#31

Open
rishabhtrivedi3-2 wants to merge 1 commit intoanxkhn:mainfrom
rishabhtrivedi3-2:fix/issue-8-date-format
Open

fix: correct date format in formatEventDateRange#31
rishabhtrivedi3-2 wants to merge 1 commit intoanxkhn:mainfrom
rishabhtrivedi3-2:fix/issue-8-date-format

Conversation

@rishabhtrivedi3-2
Copy link
Copy Markdown

Description

Corrected the date formatting logic in 'formatEventDateRange' to match the expected output in tests.
Now the function returns properly formatted ranges and handles single-day events consistently.

Related Issue

fix: incorrect date format in formatEventDateRange test #8
Closes #

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Test addition or fix

How Has This Been Tested?

  • All existing tests pass(date-utils.test.ts)
  • Manual testing performed

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