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

333: Chat message sent -1s ago #438

Merged
merged 2 commits into from
Mar 26, 2024
Merged

333: Chat message sent -1s ago #438

merged 2 commits into from
Mar 26, 2024

Conversation

evan-scales
Copy link
Collaborator

  • tested by using the deployed api and it says 'Just now'

@evan-scales evan-scales linked an issue Mar 25, 2024 that may be closed by this pull request
3 tasks
@evan-scales evan-scales linked an issue Mar 25, 2024 that may be closed by this pull request
Comment on lines -23 to -28
const days = Math.floor(diff);
const hours = Math.floor((diff - days) * 24);
const minutes = Math.floor(((diff - days) * 24 - hours) * 60);
const seconds = Math.floor(
(((diff - days) * 24 - hours) * 60 - minutes) * 60,
);
Copy link
Contributor

@jbytes1027 jbytes1027 Mar 26, 2024

Choose a reason for hiding this comment

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

Day js has a way to get seconds, minutes, hours, and days instead of computing it manually. Something to try if this doesn't work.

jbytes1027
jbytes1027 previously approved these changes Mar 26, 2024
@evan-scales evan-scales marked this pull request as draft March 26, 2024 21:41
@evan-scales evan-scales marked this pull request as ready for review March 26, 2024 21:41
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.

Chat Message sent -1s ago
2 participants