I want to use new Date().toLocaleString()
on Server side but I don’t know to get the right locale.
I tried moment.locale('de'); moment().toLocaleString();
and tried to set the lang on os:
cat /etc/default/locale
LANG=de_DE.UTF-8
but I’m still getting the english date format.