Marketplace cleanup

This commit is contained in:
David Ralph
2020-11-03 19:01:20 +00:00
parent b3195d0819
commit 8642757bd8
8 changed files with 68 additions and 134 deletions

View File

@@ -28,7 +28,7 @@ export default class DateWidget extends React.PureComponent {
day = dateYear;
year = dateDay;
break;
default:
default: // DMY
break;
}
@@ -49,7 +49,7 @@ export default class DateWidget extends React.PureComponent {
const lang = localStorage.getItem('language');
const day = date.toLocaleDateString(lang, { weekday: 'long' });
const nth = dtf.nth(date.getDate());
const nth = (localStorage.getItem('datenth') === 'true') ? dtf.nth(date.getDate()) : date.getDate();
const month = date.toLocaleDateString(lang, { month: 'long' });
const year = date.getFullYear();