Permalink
Browse files

v1.0.0 - fixed toISOString

  • Loading branch information...
kriskowal committed Jan 27, 2011
1 parent 864551b commit 0a8bd2128f77956c8c7898109a35e9c5ebaebc34
Showing with 12 additions and 7 deletions.
  1. +5 −0 CHANGES
  2. +6 −6 es5-shim.js
  3. +1 −1 package.json
View
@@ -1,4 +1,9 @@
+1.0.0
+ - fixed Date.toISODate, using UTC accessors, as in
+ http://code.google.com/p/v8/source/browse/trunk/src/date.js?r=6120#986
+ (arian)
+
0.0.4
- Revised Object.getPrototypeOf to work in more cases
in response to http://ejohn.org/blog/objectgetprototypeof/
View
@@ -457,12 +457,12 @@ if (!Object.keys) {
if (!Date.prototype.toISOString) {
Date.prototype.toISOString = function() {
return (
- this.getFullYear() + "-" +
- (this.getMonth() + 1) + "-" +
- this.getDate() + "T" +
- this.getHours() + ":" +
- this.getMinutes() + ":" +
- this.getSeconds() + "Z"
+ this.getUTCFullYear() + "-" +
+ (this.getUTCMonth() + 1) + "-" +
+ this.getUTCDate() + "T" +
+ this.getUTCHours() + ":" +
+ this.getUTCMinutes() + ":" +
+ this.getUTCSeconds() + "Z"
);
}
}
View
@@ -1,7 +1,7 @@
{
"name": "es5-shim",
"description": "ES5 as implementable on previous engines",
- "version": "0.0.4",
+ "version": "1.0.0",
"homepage": "http://github.com/kriskowal/es5-shim/",
"contributors": [
"Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)",

0 comments on commit 0a8bd21

Please sign in to comment.