Skip to content

Commit b4022fe

Browse files
committed
Hotfixing bug in date time is-after function.
1 parent 147479e commit b4022fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/widgets/DateTime/DateTime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { knownLocales } from '../../../helpers/localizedData.js';
1313
import * as styles from './DateTime.less';
1414

1515
const isAfter = (unixTime, now = Date.now() / 1000) => {
16-
return unixTime < Date.now();
16+
return unixTime < now;
1717
};
1818

1919
const getLocalizedIntlDateFormatter = lruMemoize(locale =>

0 commit comments

Comments
 (0)