Zone names are correct when they contain an underscore, especially when
the zone names are used as input to functions and libraries.
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
e.g.
Africa/Addis_Ababa
Africa/Dar_es_Salaam
Pacific/Port_Moresby
This can be revised in future if some GUI aesthetic is required.
Signed-off-by: Paul Donald <[email protected]>
close ZONE;
if( $tz ) {
- $zone =~ s/_/ /g;
+ # Don't replace underscores with spaces: correct names contain underscores.
+ # $zone =~ s/_/ /g;
$TZ{$zone} = $tz;
}
}
close ZONE;
if( $tz ) {
- $zone =~ s/_/ /g;
+ # Don't replace underscores with spaces: correct names contain underscores.
+ # $zone =~ s/_/ /g;
$TZ{$zone} = $tz;
}
}