-
Notifications
You must be signed in to change notification settings - Fork 886
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
Switch comments to calculatePublishedDate
and getRelativeTimeFromDate
#6086
Switch comments to calculatePublishedDate
and getRelativeTimeFromDate
#6086
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
oh didnt saw that pr had to be rebased :( |
@ChunkyProgrammer Now you understand why I opened |
Just in case what? Just because I didn't instantly solve the conflicts and can't work on FreeTube 24/7 doesn't mean I'm abandoning my pull requests. I also spent a bunch of time that I could have worked on FreeTube investigating the slow webpack build times and eslint linting times, in an attempt to improve our development experience, but I guess it doesn't count unless I am working directly on FreeTube... |
4e91a71
0409952
to
4e91a71
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case PRs got merge conflicts and making fix delivered slower
oh didnt saw that pr had to be rebased :(
Switch comments to
calculatePublishedDate
andgetRelativeTimeFromDate
Pull Request Type
Description
Published dates for videos and community posts were already using the
calculatePublishedDate
andgetRelativeTimeFromDate
functions, comments however were still using the oldtoLocalePublicationString
function. This pull request switches the comments over to the newer functions too, which means that thex unit ago
published date display should be the same again across the app. As the old function is now unused we can remove it as well as the translation strings that it was using (it also removes the other unused strings under theVideo.Published.*
key), because the newer functions use the built-inIntl.RelativeTimeFormat
class.@ChunkyProgrammer You'll need to make the same adjustment in your Piped pull request as that currently uses the function that this pull reqeust removes.
This pull request also fixes the storyboard issue that was introduced in the jsdoc pull request so that this pull request can actually be tested.
Testing
Check that the published dates show up on comments with both API backends
Desktop