From ede06d6beb6d38130475a0c31c2149369e2ed2d3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 4 May 2017 16:53:53 -0400 Subject: [PATCH] date: mention that `NaiveDate` is better for serialization Fixes #92. --- src/date.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/date.rs b/src/date.rs index a88ac18..d6fe6e3 100644 --- a/src/date.rs +++ b/src/date.rs @@ -21,6 +21,7 @@ use format::{Item, DelayedFormat, StrftimeItems}; /// /// This type should be considered ambiguous at best, /// due to the inherent lack of precision required for the time zone resolution. +/// For serialization and deserialization uses, it is best to use `NaiveDate` instead. /// There are some guarantees on the usage of `Date`: /// /// - If properly constructed via `TimeZone::ymd` and others without an error,