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 issue #1789 #1802

Merged
merged 3 commits into from
Jan 11, 2024
Merged

Conversation

snowteamer
Copy link
Collaborator

Closes #1789

This quickfix PR addresses an issue where timeSince() would replace 2 (\x32) characters instead of plain white spaces (\x20) by non-breaking spaces in its output, causing incorrect date display e.g. in notifications.

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

Question

Comment on lines 227 to 228
// TODO: use .replaceAll when migrating to TS.
return humanDate(datems).replace(/\x20/g, '\xa0')
Copy link
Member

Choose a reason for hiding this comment

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

We can't we use .replaceAll now? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just because our Flow version would complain about it being a non-existent string property. Or maybe we could add a $FlowFixMe comment to use it now anyway

Comment on lines 1 to 9
const userId = Math.floor(Math.random() * 10000)
const groupName = 'Dreamers'
const usersDisplayName = {
1: 'Greg',
2: 'Margarida',
3: 'Pierre',
4: 'Sandrina'
}

Copy link
Member

Choose a reason for hiding this comment

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

This file seems to have been duplicated and added on accident? Can it be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea sure - renaming a specific test file this way is a method I use sometimes to have it run first

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

Nice job @snowteamer!

EDIT: see comment: #1789 (comment) - think this issue is still open

@taoeffect taoeffect merged commit 8b708e0 into okTurtles:master Jan 11, 2024
2 checks passed
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.

Incorrect date in notification
2 participants