FIX: ensures seconds are displayed when used with dates (PR #10170)

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/seconds-not-correctly-displayed-in-discourse-local-dates/156787/4