Function serialize
fn serialize<S: serde::Serializer>(tz: &crate::tz::TimeZone, se: S) -> Result<<S as >::Ok, <S as >::Error>
Serialize a required TimeZone.
This will result in an IANA time zone identifier, fixed offset or a POSIX time zone string.
This can return an error in some cases when the TimeZone has no
succinct string representation. For example, when the TimeZone is
derived from a system /etc/localtime for which no IANA time zone
identifier could be found.