MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getNow

Function getNow

packages/decap-cms-widget-datetime/src/DateTimeControl.js:127–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 isValidDate = dt => dayjs(dt, this.getFormat().inputFormat).isValid() || dt === '';
126
127 getNow() {
128 const { inputFormat } = this.getFormat();
129 return this.isUtc ? dayjs.utc().format(inputFormat) : dayjs().format(inputFormat);
130 }
131
132 formatInputValue(value) {
133 if (value === '') return value;

Callers 1

DateTimeControl.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected