ClearFoundation Tracker - ClearCenter
View Issue Details
0007931ClearCenterapp-remote-backup - Remote Server Backuppublic2016-04-02 02:072016-05-03 13:09
bchambers 
dsokoloski 
normalminorhave not tried
closedfixed 
7.2.0 Updates 
7.2.0 Updates 
0007931: Automatic Backup Fails in certain timezones
This bit of code in /usr/clearos/apps/remote_backup/deploy/rbs_include.php

$tz_abrv = 'UTC';
$tz_offs = 0;
$ph = popen('/bin/date \'+%Z*%z\'', 'r');
if (is_resource($ph)) {
    $buffer = chop(fgets($ph, 4096));
    if (pclose($ph) == 0)
        list($tz_abrv, $tz_offs) = explode('*', $buffer);
}
$tz_name = timezone_name_from_abbr($tz_abrv, $tz_offs * 36);
if (@date_default_timezone_set($tz_name)) return;
if (date_default_timezone_set('UTC')) return;

returns an empty string for tz_name when the 'date' command returned is:

[root@gateway tmp]# date
Sat Apr 2 19:04:46 AEDT 2016

And when this happens, the auto start of the window never triggers.

Need a more reliable way of getting TZ or handle case where tz_name is empty.
No tags attached.
Issue History
2016-04-02 02:07bchambersNew Issue
2016-05-03 13:08bchambersAssigned To => dsokoloski
2016-05-03 13:08bchambersStatusnew => assigned
2016-05-03 13:08bchambersStatusassigned => acknowledged
2016-05-03 13:08bchambersStatusacknowledged => confirmed
2016-05-03 13:09bchambersStatusconfirmed => resolved
2016-05-03 13:09bchambersFixed in Version => 7.2.0 Updates
2016-05-03 13:09bchambersResolutionopen => fixed
2016-05-03 13:09bchambersStatusresolved => closed

There are no notes attached to this issue.