|
@ -11,7 +11,7 @@ module.exports = class { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
updateState({kind, weak, value, updated}) { |
|
|
|
|
|
|
|
|
updateState({kind, weak, value, utc, updated}) { |
|
|
this.state = {text: null, color: "color-menu", href: null, tooltip: null} |
|
|
this.state = {text: null, color: "color-menu", href: null, tooltip: null} |
|
|
|
|
|
|
|
|
if (value == null || value == "") { |
|
|
if (value == null || value == "") { |
|
@ -20,7 +20,7 @@ module.exports = class { |
|
|
|
|
|
|
|
|
switch (kind) { |
|
|
switch (kind) { |
|
|
case "date": { |
|
|
case "date": { |
|
|
const m = moment(value) |
|
|
|
|
|
|
|
|
const m = utc ? moment.utc(value) : moment(value) |
|
|
if (m.year() < 2) { |
|
|
if (m.year() < 2) { |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|