Replace "replace" with "replacen"

This commit is contained in:
PatriotRossii 2021-03-25 11:20:11 +05:00 committed by GitHub
parent 5743e6d8e3
commit 4e5e2ce8f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,7 +298,7 @@ fn determine_time_zone() -> TZResult<TimeZone> {
} else {
format!("/usr/share/zoneinfo/{}", {
if file.starts_with(":") {
file.replace(":", "")
file.replacen(":", "", 1)
} else {
file
}