mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
11 lines
228 B
JavaScript
11 lines
228 B
JavaScript
import moment from 'moment';
|
|
import MockDate from 'mockdate';
|
|
|
|
export function setMockDate(dateString = '2017-09-18T03:30:07.795') {
|
|
MockDate.set(moment(dateString));
|
|
}
|
|
|
|
export function resetMockDate() {
|
|
MockDate.reset();
|
|
}
|