From f6ba0393198099071e4b4288146e38a7e2b824be Mon Sep 17 00:00:00 2001 From: cgerrior Date: Tue, 13 Jan 2015 09:41:39 -0800 Subject: [PATCH] time zone info in README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 57e381cc..96a0467b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ be careful when upgrading. ## Requirements +###cURL and OpenSSL + The PHP library depends on PHP 5.3.0 (or higher) and libcurl compiled with OpenSSL support. Open up a `phpinfo();` page and verify that under the curl section, there's a line that says something like: @@ -20,6 +22,19 @@ section, there's a line that says something like: libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15 ``` +### Timezone +You will need to specify your server's timezone before using the Recurly PHP client. This is necessary for the library to properly handle datetime conversions. You can do this in your `php.ini` file: + +```php +date.timezone = 'America/Los_Angeles' +``` + +or in your PHP script: + +```php +date_default_timezone_set('America/Los_Angeles'); +``` + ## Installation ### Composer @@ -58,7 +73,9 @@ Load the Recurly library files and set your subdomain and API Key globally: .recurly.com */ Recurly_Client::$subdomain = 'your-subdomain'; +/* your private API key */ Recurly_Client::$apiKey = '012345678901234567890123456789ab'; ```