We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f1732 commit e704867Copy full SHA for e704867
packages/cubejs-api-gateway/index.js
@@ -58,7 +58,7 @@ const prepareAnnotation = (metaConfig, query) => {
58
};
59
60
const transformValue = (value, type) => {
61
- if (value && type === 'time') {
+ if (value && (type === 'time' || value instanceof Date)) { // TODO support for max time
62
return (value instanceof Date ? moment(value) : moment.utc(value)).format(moment.HTML5_FMT.DATETIME_LOCAL_MS);
63
}
64
return value && value.value ? value.value : value; // TODO move to sql adapter
0 commit comments