Setting moment locale based on user selection

resolves https://github.com/owncloud/core/issues/11700
> sorry i don't understand what your saying?

kill the 4 identical lines and add it once outside the if statements