diff options
-rw-r--r-- | ddl_builder/ddl_builder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ddl_builder/ddl_builder.js b/ddl_builder/ddl_builder.js index 4bf9da3..6be03ac 100644 --- a/ddl_builder/ddl_builder.js +++ b/ddl_builder/ddl_builder.js @@ -310,7 +310,7 @@ define( { // if we haven't previously decided that this is a character field, and it can be cast as a date, then declare it a date - if (this.definition.columns[j].type != 'charType' && !(isNaN(Date.parse(value)) || value.match(brokenDateChecker)) ) + if (this.definition.columns[j].type != 'charType' && !(isNaN(Date.parse("UTC:" + value)) || value.match(brokenDateChecker)) ) this.definition.columns[j].type = "dateType"; else this.definition.columns[j].type = "charType"; |