diff --git a/index.js b/index.js index 53d685b..b1d5242 100644 --- a/index.js +++ b/index.js @@ -317,7 +317,7 @@ const formatRecords = (recs,columns,hydrate,formatOptions) => { // Format record value based on its value, the database column's typeName and the formatting options const formatRecordValue = (value,typeName,formatOptions) => { - if(formatOptions && formatOptions.deserializeDate && ['DATE', 'DATETIME', 'TIMESTAMP', 'TIMESTAMP WITH TIME ZONE'].includes(typeName)) { + if(formatOptions && formatOptions.deserializeDate && ['DATE', 'DATETIME', 'TIMESTAMP', 'TIMESTAMPTZ', 'TIMESTAMP WITH TIME ZONE'].includes(typeName)) { return formatFromTimeStamp(value,(formatOptions && formatOptions.treatAsLocalDate) || typeName === 'TIMESTAMP WITH TIME ZONE') } else if (typeName === 'JSON') { return JSON.parse(value)