Skip to content

Commit

Permalink
Instants and ZonedDateTimes should be treated as DateTimes
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Feb 28, 2023
1 parent ffb7ada commit f1c06ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/jsapi-utils/src/TableUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ export class TableUtils {
case 'io.deephaven.db.tables.utils.DBDateTime':
case 'io.deephaven.time.DateTime':
case 'com.illumon.iris.db.tables.utils.DBDateTime':
case 'java.time.Instant':
case 'java.time.ZonedDateTime':
case TableUtils.dataType.DATETIME:
return TableUtils.dataType.DATETIME;
case 'double':
Expand Down Expand Up @@ -351,6 +353,8 @@ export class TableUtils {
switch (columnType) {
case 'io.deephaven.db.tables.utils.DBDateTime':
case 'io.deephaven.time.DateTime':
case 'java.time.Instant':
case 'java.time.ZonedDateTime':
case 'com.illumon.iris.db.tables.utils.DBDateTime':
return true;
default:
Expand Down

0 comments on commit f1c06ed

Please sign in to comment.