commit
e652877d62
4
src/types/external/chrono_tz.rs
vendored
4
src/types/external/chrono_tz.rs
vendored
|
@ -1,6 +1,6 @@
|
||||||
use chrono_tz::Tz;
|
use chrono_tz::Tz;
|
||||||
|
|
||||||
use crate::{InputValueError, InputValueResult, Result, Scalar, ScalarType, Value};
|
use crate::{InputValueError, InputValueResult, Scalar, ScalarType, Value};
|
||||||
|
|
||||||
#[Scalar(internal, name = "TimeZone")]
|
#[Scalar(internal, name = "TimeZone")]
|
||||||
impl ScalarType for Tz {
|
impl ScalarType for Tz {
|
||||||
|
@ -12,6 +12,6 @@ impl ScalarType for Tz {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn to_value(&self) -> Value {
|
fn to_value(&self) -> Value {
|
||||||
Value::String(Tz::name(self))
|
Value::String(self.name().to_owned())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
src/types/external/mod.rs
vendored
2
src/types/external/mod.rs
vendored
|
@ -13,7 +13,7 @@ mod string;
|
||||||
|
|
||||||
#[cfg(feature = "bson")]
|
#[cfg(feature = "bson")]
|
||||||
mod bson;
|
mod bson;
|
||||||
#[cfg(feature = "chrono_tz")]
|
#[cfg(feature = "chrono-tz")]
|
||||||
mod chrono_tz;
|
mod chrono_tz;
|
||||||
#[cfg(feature = "chrono")]
|
#[cfg(feature = "chrono")]
|
||||||
mod datetime;
|
mod datetime;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user