aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-26 20:32:11 +0200
committerGitHub <noreply@github.com>2019-10-26 20:32:11 +0200
commit790efdf78735d70e947415351a58db09a8152d59 (patch)
tree1d17d54fd03c9ae1ecb33f0e126182848c6997ee /apps
parent7904ddd06a2d83e83f121140eec7e7cda4cca650 (diff)
parenta7f4d54d0f3651c756d627de7ccbf9c0d74b6e8b (diff)
downloadnextcloud-server-790efdf78735d70e947415351a58db09a8152d59.tar.gz
nextcloud-server-790efdf78735d70e947415351a58db09a8152d59.zip
Merge pull request #17691 from nextcloud/enh/17673/fix-first-day-week
Show first day of the week in correct language
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/js/settings/personalInfo.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js
index 454374b303d..9a683b30c00 100644
--- a/apps/settings/js/settings/personalInfo.js
+++ b/apps/settings/js/settings/personalInfo.js
@@ -369,11 +369,9 @@ $(document).ready(function () {
});
window.setInterval(function() {
- $('#localeexample-time').text(moment().format('LTS'));
- $('#localeexample-date').text(moment().format('L'));
- $('#localeexample-fdow').text(t('settings', 'Week starts on {fdow}',
- {fdow: moment().weekday(0).format('dddd')}));
-
-}, 1000);
+ $('#localeexample-time').text(moment().format('LTS'))
+ $('#localeexample-date').text(moment().format('L'))
+ $('#localeexample-fdow').text(t('settings', 'Week starts on {fdow}', { fdow: dayNames[firstDay] }))
+}, 1000)
OC.Settings.updateAvatar = updateAvatar;