From fc40afda438195ec3d6f2a4c61477f7c09ec5e1a Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 14 Aug 2007 11:41:16 +0000 Subject: Documented the timezones() function in the Date Helper --- user_guide/changelog.html | 3 ++- user_guide/helpers/date_helper.html | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/user_guide/changelog.html b/user_guide/changelog.html index d03fab5c8..e11bdc7dd 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -71,7 +71,8 @@ Change Log
  • Reorganized the URI and Routes classes for better clarity.
  • Javascript Calendar plugin now uses the months and days from the calendar language file, instead of hard-coded values, internationalizing it
  • Removed "rand()" as a listed option from orderby in the Active Record, as it was MySQL only.
  • -
  • Added titles to all user manual pages
  • +
  • Added titles to all user manual pages
  • +
  • Documented the timezones() function in the Date Helper
  • Fixed a bug in database driver where num_rows property wasn't getting updated
  • Fixed a bug in captcha calling an invalid PHP function
  • Fixed a bug in _html_entity_decode_callback() when 'global_xss_filtering' is enabled.
  • diff --git a/user_guide/helpers/date_helper.html b/user_guide/helpers/date_helper.html index d703801a0..2353ff848 100644 --- a/user_guide/helpers/date_helper.html +++ b/user_guide/helpers/date_helper.html @@ -223,11 +223,11 @@ echo timespan($post_date, $now); echo days_in_month(06, 2005);

    If the second parameter is empty, the current year will be used.

    - - - +

    timezones()

    +

    Takes a timezone reference (for a list of valid timezones, see the "Timezone Reference" below) and returns the number of hours offset from UTC.

    +

    echo timezones('UM5');

    +

    This function is useful when used with timezone_menu().

    timezone_menu()

    -

    Generates a pull-down menu of timezones, like this one:

    -- cgit v1.2.3-24-g4f1b