Permalink
Browse files

CLI backup timezone bugfix

  • Loading branch information...
1 parent 1538659 commit 7a49db9affccd5422894630f878c4de9ae11caa0 @ginatrapani ginatrapani committed Jan 27, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 webapp/install/cli/backup.php
@@ -29,6 +29,9 @@
*/
chdir('../..');
require_once 'init.php';
+//Avoid "Error: DateTime::__construct(): It is not safe to rely on the system's timezone settings" error
+require_once 'config.inc.php';
+date_default_timezone_set($THINKUP_CFG['timezone']);
// don't run via the web...
if(isset($_SERVER['SERVER_NAME'])) {

0 comments on commit 7a49db9

Please sign in to comment.