fix: only show features in settings that are compatible with the browser and fix date widget

This commit is contained in:
David Ralph
2021-03-31 19:53:26 +01:00
parent 4ad3c3142a
commit a5b2dd39cb
4 changed files with 9 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ export default class DateWidget extends React.PureComponent {
});
} else {
// Long date
const lang = localStorage.getItem('language');
const lang = localStorage.getItem('language').split('_')[0];
const nth = (localStorage.getItem('datenth') === 'true') ? dtf.nth(date.getDate()) : date.getDate();