Skip to content

Commit 4b18340

Browse files
committed
Corrected the dates ... forgot that JavaScript uses 0-based month numbers.
1 parent ce76477 commit 4b18340

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

APM/app/common/services/productResourceMock.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module app.common {
1212
var products: app.domain.IProduct[] = [];
1313
var product: app.domain.IProduct;
1414
15-
product = new app.domain.Product(1, "Leaf Rake", "GDN-0011", new Date(2009, 3, 19), 19.95,
15+
product = new app.domain.Product(1, "Leaf Rake", "GDN-0011", new Date(2009, 2, 19), 19.95,
1616
"Leaf rake with 48-inch wooden handle.",
1717
"http://openclipart.org/image/300px/svg_to_png/26215/Anonymous_Leaf_Rake.png");
1818
products.push(product);
1919
20-
product = new app.domain.Product(2, "Garden Cart", "GDN-0023", new Date(2010, 3, 18), 26.95,
20+
product = new app.domain.Product(2, "Garden Cart", "GDN-0023", new Date(2010, 2, 18), 26.95,
2121
"15 gallon capacity rolling garden cart",
2222
"http://openclipart.org/image/300px/svg_to_png/58471/garden_cart.png");
2323
products.push(product);
@@ -27,12 +27,12 @@ module app.common {
2727
"http://openclipart.org/image/300px/svg_to_png/27070/egore911_saw.png");
2828
products.push(product);
2929
30-
product = new app.domain.Product(4, "Hammer", "TBX-0048", new Date(2013, 5, 21), 8.99,
30+
product = new app.domain.Product(4, "Hammer", "TBX-0048", new Date(2013, 4, 21), 8.99,
3131
"Curved claw steel hammer",
3232
"http://openclipart.org/image/300px/svg_to_png/73/rejon_Hammer.png");
3333
products.push(product);
3434
35-
product = new app.domain.Product(5, "Video Game Controller", "GMG-0042", new Date(2012, 10, 15), 35.95,
35+
product = new app.domain.Product(5, "Video Game Controller", "GMG-0042", new Date(2012, 9, 25), 35.95,
3636
"Standard five-button video game controller",
3737
"http://openclipart.org/image/300px/svg_to_png/120337/xbox-controller_01.png");
3838
products.push(product);

APM/clipboard.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ this.products = [
33
"productId": 1,
44
"productName": "Leaf Rake",
55
"productCode": "GDN-0011",
6-
"releaseDate": "March 19, 2009",
6+
"releaseDate": new Date(2009, 2, 19),
77
"description": "Leaf rake with 48-inch wooden handle.",
88
"price": 19.95,
99
"imageUrl": "http://openclipart.org/image/300px/svg_to_png/26215/Anonymous_Leaf_Rake.png"
@@ -12,7 +12,7 @@ this.products = [
1212
"productId": 2,
1313
"productName": "Garden Cart",
1414
"productCode": "GDN-0023",
15-
"releaseDate": "March 18, 2010",
15+
"releaseDate": new Date(2010, 2, 18),
1616
"description": "15 gallon capacity rolling garden cart",
1717
"price": 32.99,
1818
"imageUrl": "http://openclipart.org/image/300px/svg_to_png/58471/garden_cart.png"
@@ -21,7 +21,7 @@ this.products = [
2121
"productId": 5,
2222
"productName": "Hammer",
2323
"productCode": "TBX-0048",
24-
"releaseDate": "May 21, 2013",
24+
"releaseDate": new Date(2013, 4, 21),
2525
"description": "Curved claw steel hammer",
2626
"price": 8.99,
2727
"imageUrl": "http://openclipart.org/image/300px/svg_to_png/73/rejon_Hammer.png"

0 commit comments

Comments
 (0)