FIX: nbsp handling in group-timezones (#739)

Since it was converted to Glimmer, the nbsp html entity is being escaped by ember before rendering. We can use a unicode literal instead.

Followup to d471bbdf9a
This commit is contained in:
David Taylor 2025-06-03 15:39:58 +01:00 committed by GitHub
parent 8e4396c38b
commit 4d0af68ec8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ import NewDay from "./new-day";
import TimeTraveller from "./time-traveller";
import Timezone from "./timezone";
const nbsp = "\xa0";
export default class GroupTimezones extends Component {
@service siteSettings;
@ -132,7 +134,7 @@ export default class GroupTimezones extends Component {
return `${sign}${hours.replace(/^0(\d)/, "$1")}${minutes.replace(
/:00$/,
""
)}`.replace(/-0/, " ");
)}`.replace(/-0/, nbsp);
}
#workingDays() {