Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
93f5e0d3
Commit
93f5e0d3
authored
Nov 27, 2018
by
Eric - kg6wxc
Browse files
even more timezone fixes
parent
cbbac3b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
webpage/admin/status_updates.php
View file @
93f5e0d3
...
...
@@ -28,6 +28,12 @@ if (!$sql_connection) {
$totalNumNonMeshMarkers
=
mysqli_num_rows
(
mysqli_query
(
$sql_connection
,
"SELECT name from marker_info"
));
mysqli_close
(
$sql_connection
);
}
$localTimeZone
=
new
DateTimeZone
(
$USER_SETTINGS
[
'localTimeZone'
]);
$nodeInfoLastUpdate
=
new
DateTime
(
$lastUpdateNodeInfo
[
'script_last_run'
]);
$linkInfoLastUpdate
=
new
DateTime
(
$lastUpdateLinkInfo
[
'table_last_update'
]);
date_timezone_set
(
$nodeInfoLastUpdate
,
$localTimeZone
);
date_timezone_set
(
$linkInfoLastUpdate
,
$localTimeZone
);
?>
<table
id=
"admin_sql_status_table"
>
<thead>
...
...
@@ -63,7 +69,8 @@ echo "<td class=\"admin_sql_status_table_background\">With Locations:</td>\n";
echo
"<td class=
\"
admin_sql_status_table_background
\"
>
$totalNumNodesWithLocations
</td>
\n
"
;
echo
"<td colspan=
\"
2
\"
class=
\"
admin_sql_status_table_background
\"
>Nodes Last Polled:</td>
\n
"
;
//echo "<td class=\"admin_sql_status_table_background\"> </td>\n";
echo
"<td class=
\"
admin_sql_status_table_background
\"
>"
.
$lastUpdateNodeInfo
[
'script_last_run'
]
.
"
\n
"
;
echo
"<td class=
\"
admin_sql_status_table_background
\"
>"
.
date_format
(
$nodeInfoLastUpdate
,
'Y-m-d H:i:s T'
)
.
"
\n
"
;
//echo "<td class=\"admin_sql_status_table_background\">" . $lastUpdateNodeInfo['script_last_run'] . "\n";
echo
"<td class=
\"
admin_sql_status_table_background
\"
></td>
\n
"
;
echo
"</tr>"
;
echo
"<tr>"
;
...
...
@@ -73,7 +80,7 @@ echo "<td class=\"admin_sql_status_table_background\">With Locations:</td>\n";
echo
"<td class=
\"
admin_sql_status_table_background
\"
>
$totalNumLinksWithLocations
</td>
\n
"
;
echo
"<td colspan=
\"
2
\"
class=
\"
admin_sql_status_table_background
\"
>Links Last Updated:</td>
\n
"
;
//echo "<td class=\"admin_sql_status_table_background\">Updated:</td>\n";
echo
"<td class=
\"
admin_sql_status_table_background
\"
>"
.
$lastUpdateLinkInfo
[
'table_l
ast
_u
pdate
'
]
.
"
\n
"
;
echo
"<td class=
\"
admin_sql_status_table_background
\"
>"
.
date_format
(
$linkInfoL
ast
U
pdate
,
'Y-m-d H:i:s T'
)
.
"
\n
"
;
echo
"<td class=
\"
admin_sql_status_table_background
\"
> </td>
\n
"
;
echo
"</tr>
\n
"
;
echo
"<tr>
\n
"
;
...
...
webpage/map_display.php
View file @
93f5e0d3
...
...
@@ -74,8 +74,8 @@ require $INCLUDE_DIR . "/scripts/wxc_functions.inc";
require
$INCLUDE_DIR
.
"/scripts/map_functions.inc"
;
//commented out for timezone fizes -wxc 11-27-2018
global
$
tz
;
$
tz
=
new
DateTimeZone
(
$USER_SETTINGS
[
'localTimeZone'
]);
global
$
localTimeZone
;
$
localTimeZone
=
new
DateTimeZone
(
$USER_SETTINGS
[
'localTimeZone'
]);
/*
* This section will try to tell if the client has internet access or not
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment