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 42da7f8 commit 741137dCopy full SHA for 741137d
rust/cubesql/pg-srv/src/values/timestamp.rs
@@ -107,8 +107,12 @@ impl ToProtocolValue for TimestampValue {
107
None => self.to_naive_datetime(),
108
Some(_) => self.to_fixed_datetime()?.naive_utc(),
109
};
110
- let ts_str = ndt.format("%Y-%m-%d %H:%M:%S%.6f").to_string();
111
- ts_str.to_text(buf)
+ let as_str = ndt.format("%Y-%m-%d %H:%M:%S%.6f").to_string();
+
112
+ match self.tz_ref() {
113
+ None => as_str.to_text(buf),
114
+ Some(_) => (as_str + "+00").to_text(buf),
115
+ }
116
}
117
118
fn to_binary(&self, buf: &mut BytesMut) -> Result<(), ProtocolError> {
0 commit comments