Sha256: 4247af5c6dd0712705186ed54d789193c64139f707af316d4fde86aa1e2a1b13
Contents?: true
Size: 348 Bytes
Versions: 19
Compression:
Stored size: 348 Bytes
Contents
pub(crate) fn get_timezone_inner() -> Result<String, crate::GetTimezoneError> { // see https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/19 let mut contents = std::fs::read_to_string("/var/db/zoneinfo")?; // Trim to the correct length without allocating. contents.truncate(contents.trim_end().len()); Ok(contents) }
Version data entries
19 entries across 19 versions & 1 rubygems