Quote language feature and date settings

This commit is contained in:
David Ralph
2020-11-30 15:03:23 +00:00
parent 86b6ad6542
commit 7bfa7ed0a8
4 changed files with 31 additions and 2 deletions

View File

@@ -11,9 +11,10 @@ export default class DateWidget extends React.PureComponent {
getDate() {
const date = new Date();
const short = localStorage.getItem('short');
const dateFormat = localStorage.getItem('dateFormat');
if (dateFormat === 'short') {
if (short === 'true') {
const dateDay = date.getDate();
const dateMonth = date.getMonth() + 1;
const dateYear = date.getFullYear();