Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better support for timezone option.

Useless for now as the timezones aren't used yet anywhere in the code.
  • Loading branch information...
commit e767366555b6e79c6f4d04f0ce6e41d6b662f282 1 parent e35429b
@fpoirotte authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/xrl
View
4 scripts/xrl
@@ -220,6 +220,10 @@ class XRL_CLI
}
// Then let's do it!
+ $timezone = $options['t'];
+ if ($timezone === NULL)
+ $timezone = date_default_timezone_get();
+ $timezone = new DateTimeZone($timezone);
$encoder = new XRL_Encoder(XRL_Encoder::OUTPUT_PRETTY);
$decoder = new XRL_Decoder($options['x']);
$request = new XRL_Request(
Please sign in to comment.
Something went wrong with that request. Please try again.