date: mention that `NaiveDate` is better for serialization

Fixes #92.
This commit is contained in:
Ben Boeckel 2017-05-04 16:53:53 -04:00 committed by Kang Seonghoon
parent dcf193323b
commit ede06d6beb
1 changed files with 1 additions and 0 deletions

View File

@ -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<Tz>`:
///
/// - If properly constructed via `TimeZone::ymd` and others without an error,