const transformValue = (value, type) => { if (value && (type === 'time' || value instanceof Date)) { // TODO support for max time return (value instanceof Date ? moment(value) : moment.utc(value)).format(moment.HTML5_FMT.DATETIME_LOCAL_MS); } return value && value.value ? value.value : value; // TODO move to sql adapter }
inDbTimeZone(date) { return this.inIntegrationTimeZone(date).clone().utc().format(moment.HTML5_FMT.DATETIME_LOCAL_MS); }
const timestampTypeParser = val => moment.utc(val).format(moment.HTML5_FMT.DATETIME_LOCAL_MS)