Skip to content
Browse files

Fixed documentation of new function setUTCOffsetString

  • Loading branch information...
1 parent 6fc76bb commit b70f73eaff5139a969471e1f2038269d87cdddad @kensnyder committed Dec 12, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −0 reference.html
  2. +2 −2 src/Date.js
View
1 reference.html
@@ -152,6 +152,7 @@ <h3 id="ref">Full Reference</h3>
<tr><td>Date#getGmtOffset() -&gt; String</td><td>Returns the minutes and seconds offset from GMT.</td></tr>
<tr><td>Date#getTimezoneName() -&gt; String</td><td>Returns the browser-reported name of the timezone.</td></tr>
<tr><td>Date#toYmdInt() -&gt; Number</td><td>Returns an integer in the format YYYYMMDD (useful for quickly sorting by date)</td></tr>
+ <tr><td>Date#setUTCOffsetString(sOffset) -&gt; Date</td><td>Set the UTC offset with a four-digit string such as `+04:00` or `-0700`</td></tr>
<tr><th colspan="2" class="section">New Date Static Properties</th></tr>
<tr><th>Property</th><th>Description</th></tr>
View
4 src/Date.js
@@ -333,9 +333,9 @@
return this;
},
/**
- * Set the offset in minutes and seconds in the form "+0200" or "+02:00"
+ * Set the time zone offset in minutes and seconds in the form "+0200" or "+02:00"
*
- * @param {Number} seconds The number of seconds before or past UTC time
+ * @param {String} str The GMT Offset
* @return {Date}
*/
setUTCOffsetString: function(str) {

0 comments on commit b70f73e

Please sign in to comment.
Something went wrong with that request. Please try again.