mirror of
https://github.com/mue/mue.git
synced 2026-07-13 20:13:47 +02:00
Quote language feature and date settings
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user