We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e381f2 + cf1fd28 commit ba71d9aCopy full SHA for ba71d9a
2 files changed
Cargo.toml
@@ -5,7 +5,7 @@ name = "shvproto"
5
description = "Rust implementation of the SHV protocol"
6
license = "MIT"
7
repository = "https://github.com/silicon-heaven/libshvproto-rs"
8
-version = "6.1.4"
+version = "6.1.5"
9
edition = "2024"
10
11
[dependencies]
src/serde/de.rs
@@ -431,7 +431,11 @@ impl<'de> serde::Deserialize<'de> for crate::DateTime {
431
}
432
433
434
- deserializer.deserialize_newtype_struct("DateTime", DateTimeVisitor)
+ if deserializer.is_human_readable() {
435
+ deserializer.deserialize_str(DateTimeVisitor)
436
+ } else {
437
+ deserializer.deserialize_newtype_struct("DateTime", DateTimeVisitor)
438
+ }
439
440
441
0 commit comments