             case .data:
                 return stringValue.data(using: String.Encoding.utf8)
             }
-        case .date, .timestamp:
+        case .date, .timestamp, .timestamptz:
             let date = convert(dateValue: stringValue, valueType: type)
             return date
         default:

    private func convert(dateValue: String, valueType: RopeValueType) -> Date? {
        let (format, respectUTC) = { (valueType: RopeValueType) -> (String, Bool) in
            switch valueType {
            case .timestamp:
                return ("yyyy-MM-dd HH:mm:ss.SSS", true)
            default:


    case date = 1082
    case timestamp = 1114
    case timestamptz = 1184

    case numeric = 1700

