Skip to content

Commit 24c5e13

Browse files
Mark JessopMark Jessop
authored andcommitted
Remove nbsp in dates, reduce precision of temp/pressure/humidity values
1 parent 44500a2 commit 24c5e13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/sondehub.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,9 +1697,9 @@ function formatDate(date,utc) {
16971697

16981698
if(typeof utc != "undefined") {
16991699
z = date.getTimezoneOffset() / -60;
1700-
return a+'-'+b+'-'+c+'&nbsp;'+e+':'+f+':'+g+"&nbsp;UTC"+((z<0)?"-":"+")+z;
1700+
return a+'-'+b+'-'+c+' '+e+':'+f+':'+g+" UTC"+((z<0)?"-":"+")+z;
17011701
} else {
1702-
return a+'-'+b+'-'+c+'&nbsp;'+e+':'+f+':'+g;
1702+
return a+'-'+b+'-'+c+' '+e+':'+f+':'+g;
17031703
}
17041704
}
17051705

@@ -3067,11 +3067,11 @@ function mapInfoBox_handle_path_new(data, vehicle, date) {
30673067
}
30683068

30693069

3070-
prop(prop_parent,"humidity", "Relative Humidity","%", 3);
3070+
prop(prop_parent,"humidity", "Relative Humidity","%", 1);
30713071
prop(prop_parent,"manufacturer", "Manufacturer");
3072-
prop(prop_parent,"pressure", "Pressure", "Pa", 4);
3072+
prop(prop_parent,"pressure", "Pressure", "Pa", 1);
30733073
prop(prop_parent,"sats", "Satellites");
3074-
prop(prop_parent,"temp", "Temperature External", "°C", 3);
3074+
prop(prop_parent,"temp", "Temperature External", "°C", 1);
30753075

30763076
if (!prop(prop_parent,"subtype", "Sonde Type")){
30773077
prop(prop_parent,"type", "Sonde Type")

0 commit comments

Comments
 (0)