Skip to content

Commit

Permalink
Fix CLI to use timezone information.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Apr 14, 2012
1 parent ce97a62 commit 6911545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/xrl
Expand Up @@ -433,7 +433,7 @@ class XRL_CLI
'd' => FALSE, 'd' => FALSE,
'h' => FALSE, 'h' => FALSE,
'n' => FALSE, 'n' => FALSE,
't' => new DateTimeZone(date_default_timezone_get()), 't' => new DateTimeZone(@date_default_timezone_get()),
'v' => FALSE, 'v' => FALSE,
'x' => FALSE, 'x' => FALSE,
); );
Expand Down Expand Up @@ -531,8 +531,8 @@ class XRL_CLI
} }


// Then let's do it! // Then let's do it!
$encoder = new XRL_Encoder(XRL_Encoder::OUTPUT_PRETTY); $encoder = new XRL_Encoder($options['t'], TRUE);
$decoder = new XRL_Decoder($options['x']); $decoder = new XRL_Decoder($options['t'], $options['x']);
$request = new XRL_Request( $request = new XRL_Request(
$params['procedure'], $params['procedure'],
$params['additional'] $params['additional']
Expand Down

0 comments on commit 6911545

Please sign in to comment.