Setting moment locale based on user selection

resolves https://github.com/owncloud/core/issues/11700
Always use p() instead of echo.