mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Validate.php timezone failure
Move the timezone into the constructor.
This commit is contained in:
@@ -76,8 +76,7 @@ $versions = version_info();
|
||||
echo "Version info:\n";
|
||||
$cur_sha = $versions['local_sha'];
|
||||
if ($config['update_channel'] == 'master' && $cur_sha != $versions['github']['sha']) {
|
||||
$commit_date = new DateTime($versions['local_date']);
|
||||
$commit_date->setTimezone(new DateTimeZone(date_default_timezone_get()));
|
||||
$commit_date = new DateTime($versions['local_date'], new DateTimeZone(date_default_timezone_get()));
|
||||
print_warn("Your install is out of date: $cur_sha " . $commit_date->format('(r)'));
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user