diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-08-14 13:41:16 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-08-14 13:41:16 +0200 |
commit | fc40afda438195ec3d6f2a4c61477f7c09ec5e1a (patch) | |
tree | 07c4951075e70123162c4ef38c5128a32342b024 /user_guide | |
parent | 89bf50f992b97772acb4028bbd7c9faf81899148 (diff) |
Documented the timezones() function in the Date Helper
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/changelog.html | 3 | ||||
-rw-r--r-- | 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 <li>Reorganized the URI and Routes classes for better clarity.</li>
<li>Javascript Calendar plugin now uses the months and days from the calendar language file, instead of hard-coded values, internationalizing it </li>
<li>Removed "rand()" as a listed option from orderby in the <a href="./database/active_record.html">Active Record</a>, as it was MySQL only. </li>
- <li>Added titles to all user manual pages </li>
+ <li>Added titles to all user manual pages</li>
+ <li>Documented the timezones() function in the <a href="./helpers/date_helper.html">Date Helper</a></li>
<li>Fixed a bug in database driver where num_rows property wasn't getting updated </li>
<li>Fixed a bug in captcha calling an invalid PHP function</li>
<li>Fixed a bug in _html_entity_decode_callback() when 'global_xss_filtering' is enabled.</li>
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);</code> <code>echo days_in_month(06, 2005);</code>
<p>If the second parameter is empty, the current year will be used.</p>
-
-
-
+<h2>timezones()</h2>
+<p> Takes a timezone reference (for a list of valid timezones, see the "Timezone Reference" below) and returns the number of hours offset from UTC.</p>
+<p><code>echo timezones('UM5');</code></p>
+<p>This function is useful when used with timezone_menu(). </p>
<h2>timezone_menu()</h2>
-
<p>Generates a pull-down menu of timezones, like this one:</p>
<form>
|