Replace nnbsp with regular space

This commit is contained in:
Friendseeker 2024-10-29 17:43:33 -07:00
parent 4835812e1c
commit 92d4cfa690
2 changed files with 2 additions and 2 deletions

View File

@ -1011,7 +1011,7 @@ class NetworkClient(
private def timing(startTime: Long, endTime: Long): String = {
import java.text.DateFormat
val format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)
val nowString = format.format(new java.util.Date(endTime))
val nowString = format.format(new java.util.Date(endTime)).replace("\u202F", "\u0020")
val total = math.max(0, (endTime - startTime + 500) / 1000)
val totalString = s"$total s" +
(if (total <= 60) ""

View File

@ -152,7 +152,7 @@ object Aggregation {
}
def timing(format: java.text.DateFormat, startTime: Long, endTime: Long): String = {
val nowString = format.format(new java.util.Date(endTime))
val nowString = format.format(new java.util.Date(endTime)).replace("\u202F", "\u0020")
val total = (endTime - startTime + 500) / 1000
val totalString = s"$total s" +
(if (total <= 60) ""