The displayTime function in utils/utils.jsx manually formats a date, but we can use the FormattedTime component from react-intl to do this for us. That component is also better localized than the function.
That function should be removed and replaced with a FormattedTime
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
Here's a new PR: https://github.com/mattermost/mattermost-webapp/pull/4117
Thank you @niklabh for your contribution!
Most helpful comment
Here's a PR: https://github.com/mattermost/mattermost-webapp/pull/3693