Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): date normalization #341

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yassinedorbozgithub
Copy link
Collaborator

@yassinedorbozgithub yassinedorbozgithub commented Nov 17, 2024

Motivation

The main motivation of this PR is to fix the UI normalization date issue.

Fixes #336

Type of change:

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes

Copy link
Contributor

@marrouchi marrouchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎸 Awesome !

We may want to use this new fn also in the dashboard charts as well. Can you check ?

@yassinedorbozgithub
Copy link
Collaborator Author

Hi @marrouchi, yes for sure
happy to apply the change 🪄 in the dashboard as well

@yassinedorbozgithub
Copy link
Collaborator Author

Hi @marrouchi, after checking in the dashboard context the logic is using another date function named toLocaleDateString and the input prop is required so there is no common pattern to be able to use the new normalizeDate function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [BUG] - Time formatting breaks after sending a new message in the inbox
2 participants