var moment = require("../index");

exports["manipulate"] = {
  "add" : function (t) {    
    t.equal(
      moment('2012-10-28 00:00:00 +01:00').tz('Europe/London').add('days', 1).format(),
      '2012-10-29T00:00:00+00:00',
      "adding 1 day while crossing a DST boundary should not affect time (BST -> GMT).");
    t.equal(
      moment('2013-11-03T00:00:00-07:00').tz('America/Los_Angeles').add(1, 'day').format(),
      "2013-11-04T00:00:00-08:00",
      "adding 1 day while crossing a DST boundary should not affect time (PDT-> PST).");    
    t.equal(
      moment("2014-03-09T00:00:00-08:00").tz('America/Los_Angeles').add(1, 'day').format(),
      "2014-03-10T00:00:00-07:00",
      "adding 1 day while crossing a DST boundary should not affect time (PST -> PDT).");
    t.done();
  },
  "subtract" : function (t) {
    t.equal(
      moment('2012-10-29 00:00:00 +00:00').tz('Europe/London').subtract('days', 1).format(),
      '2012-10-28T00:00:00+01:00',
      "subtracting 1 day while crossing a DST boundary should not affect time (GMT -> BST).");
    t.equal(
      moment("2013-11-04T00:00:00-08:00").tz('America/Los_Angeles').subtract(1, 'day').format(),
      '2013-11-03T00:00:00-07:00',
      "adding 1 day while crossing a DST boundary should not affect time (PST -> PDT).");    
    t.equal(
      moment("2014-03-10T00:00:00-07:00").tz('America/Los_Angeles').subtract(1, 'day').format(),
      "2014-03-09T00:00:00-08:00",
      "adding 1 day while crossing a DST boundary should not affect time (PDT -> PST).");
    t.done();
  },
  "month" : function (t) {
    t.equal(
      moment("2014-03-09T00:00:00-08:00").tz('America/Los_Angeles').add(1, 'month').format(),
      "2014-04-09T00:00:00-07:00",
      "adding 1 month while crossing a DST boundary should not affect time (PST -> PDT).");
    t.equal(
      moment("2014-03-09T00:00:00-08:00").tz('America/Los_Angeles').month("April").format(),
      "2014-04-09T00:00:00-07:00",
      "setting month across a DST boundary should not affect time (PST -> PDT).");
    
    t.done();
  }
  
};
@@ -78,21 +78,17 @@
 on (t) %7B
-    
 %0A
+
     t.eq
@@ -125,17 +125,16 @@
 00:00:00
- 
 +01:00')
@@ -528,28 +528,24 @@
 T-%3E PST).%22);
-    
 %0A    t.equal
@@ -849,25 +849,25 @@
 12-10-29
- 
+T
 00:00:00
  +00:00'
@@ -858,17 +858,16 @@
 00:00:00
- 
 +00:00')
@@ -1281,20 +1281,16 @@
 PDT).%22);
-    
 %0A    t.e
@@ -2025,13 +2025,9 @@
 %22);%0A
-    
 %0A
+
     
@@ -2044,9 +2044,8 @@
   %7D%0A
-  
 %0A%7D;
+%0A

Use ISO format when creating test moments