mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-28 14:46:22 +00:00
feat: support set timezone in db (#2992)
* feat: support set timezone in db * chore: fix ci * chore: fix code advice * fix: rename `time_zone` to `timezone`
This commit is contained in:
@@ -521,6 +521,7 @@ mod tests {
|
||||
|
||||
use api::v1::ColumnDataType;
|
||||
use common_time::timestamp::TimeUnit;
|
||||
use common_time::timezone::set_default_timezone;
|
||||
use datatypes::types::BooleanType;
|
||||
use datatypes::value::OrderedFloat;
|
||||
|
||||
@@ -696,7 +697,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
pub fn test_parse_datetime_literal() {
|
||||
std::env::set_var("TZ", "Asia/Shanghai");
|
||||
set_default_timezone(Some("Asia/Shanghai")).unwrap();
|
||||
let value = sql_value_to_value(
|
||||
"datetime_col",
|
||||
&ConcreteDataType::datetime_datatype(),
|
||||
|
||||
Reference in New Issue
Block a user