Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
updateValue = (value) => {
const newValue = DateFactory(value).getTime();
this.setState({
value: newValue
});
return newValue;
}
updateValue = (value) => {
const newValue = DateFactory(value).getTime();
this.setState({
noHourAnimation: !this.shouldAnimateHour(value),
value: newValue
});
return newValue;
}
toIDate (time) {
if (time && this.locale) {
return DateFactory({
unixtime: time,
timezone: 'local'
});
}
}
toIDate (time) {
if (time && this.locale) {
return DateFactory({
timezone: 'local',
unixtime: time
});
}
}