Function serialize
fn serialize<S: serde::Serializer>(tz: &Option<crate::tz::TimeZone>, se: S) -> Result<<S as >::Ok, <S as >::Error>
Serialize an optional 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.