Skip to content

fix: resolve date display showing '1 day ago' for all reviews (#14)#15

Open
Karroch-a wants to merge 1 commit intofeaturable:mainfrom
Karroch-a:fix/review-date-display-issue-14
Open

fix: resolve date display showing '1 day ago' for all reviews (#14)#15
Karroch-a wants to merge 1 commit intofeaturable:mainfrom
Karroch-a:fix/review-date-display-issue-14

Conversation

@Karroch-a
Copy link

  • Change getRelativeDate to use Math.floor instead of Math.ceil for accurate day calculation
  • Add special cases for 'today' and '1 day ago' in relative date formatting
  • Fix apiTransformers to use publishedAt instead of createdAt for review dates
  • Ensures reviews display correct relative dates based on actual Google review publication date

Fixes #14

…able#14)

- Change getRelativeDate to use Math.floor instead of Math.ceil for accurate day calculation
- Add special cases for 'today' and '1 day ago' in relative date formatting
- Fix apiTransformers to use publishedAt instead of createdAt for review dates
- Ensures reviews display correct relative dates based on actual Google review publication date

Fixes featurable#14
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.

bug: all cards in the carousel shows 1 day ago

1 participant