kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
rodzic
56f6d77b0a
commit
420ea538df
|
@ -31,6 +31,8 @@
|
|||
<script src="{{ url_for('static', filename='js/tabulator.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
timezone = new Date().toLocaleDateString(undefined, {day:'2-digit',timeZoneName: 'short' }).substring(4);
|
||||
|
||||
var autorx_config = {
|
||||
lat: 0.0,
|
||||
lon: 0.0
|
||||
|
@ -169,7 +171,7 @@
|
|||
temp_date = temp_date.slice(0, -3);
|
||||
temp_date += "Z";
|
||||
var date = new Date(temp_date);
|
||||
var date_converted = date.toLocaleString(window.navigator.language,{hourCycle:'h23', year:"numeric", month:"2-digit", day:'2-digit', hour:'2-digit',minute:'2-digit', second:'2-digit'});
|
||||
var date_converted = date.toLocaleString(window.navigator.language,{hourCycle:'h23', year:"numeric", month:"2-digit", day:'2-digit', hour:'2-digit',minute:'2-digit', second:'2-digit'}) + ' ' + timezone;
|
||||
$('#scan_results').html('<b>Latest Scan:</b> ' + date_converted);
|
||||
} else {
|
||||
$('#scan_results').html('<b>Latest Scan:</b> ' + (data.timestamp.slice(0, -3) + 'Z').replace("T", " ").replace("Z", "").slice(0, -4) + ' UTC');
|
||||
|
|
Ładowanie…
Reference in New Issue