Skip to content

Commit

Permalink
Error en fecha
Browse files Browse the repository at this point in the history
Se definían valores octales
  • Loading branch information
javadabadoo committed Jun 3, 2013
1 parent 1e0e9cc commit ace92f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static Comprobante createComprobante(int year) throws Exception {
ObjectFactory of = new ObjectFactory();
Comprobante comp = of.createComprobante();
comp.setVersion("2.2");
Date date = new GregorianCalendar(year, 04, 03, 14, 11, 36).getTime();
Date date = new GregorianCalendar(year, 4, 3, 14, 11, 36).getTime();
comp.setFecha(date);
comp.setSerie("ABCD");
comp.setFolio("2");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static Comprobante createComprobante() throws Exception {
ObjectFactory of = new ObjectFactory();
Comprobante comp = of.createComprobante();
comp.setVersion("3.0");
Date date = new GregorianCalendar(2011, 01, 06, 20, 38, 12).getTime();
Date date = new GregorianCalendar(2011, 1, 6, 20, 38, 12).getTime();
comp.setFecha(date);
comp.setFormaDePago("PAGO EN UNA SOLA EXHIBICION");
comp.setSubTotal(new BigDecimal("466.43"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static Comprobante createComprobante() throws Exception {
ObjectFactory of = new ObjectFactory();
Comprobante comp = of.createComprobante();
comp.setVersion("3.2");
Date date = new GregorianCalendar(2012, 01, 06, 20, 38, 12).getTime();
Date date = new GregorianCalendar(2012, 1, 6, 20, 38, 12).getTime();
comp.setFecha(date);
comp.setFormaDePago("PAGO EN UNA SOLA EXHIBICION");
comp.setSubTotal(new BigDecimal("466.43"));
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/mx/bigdata/sat/cfdi/TFDv1Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class TFDv1Test {
CFDv3 cfd = new CFDv3(ExampleCFDFactory.createComprobante(),
"mx.bigdata.sat.cfdi.examples");
cfd.sellar(key, cert);
Date date = new GregorianCalendar(2011, 01, 07, 8, 51, 00).getTime();
Date date = new GregorianCalendar(2011, 1, 7, 8, 51, 0).getTime();
UUID uuid = UUID.fromString("843a05d7-207d-4adc-91e8-bda7175bcda3");
tfd = new TFDv1(cfd, pacCert, uuid, date);
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/mx/bigdata/sat/cfdi/TFDv1c32Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class TFDv1c32Test {
CFDv32 cfd = new CFDv32(ExampleCFDv32Factory.createComprobante(),
"mx.bigdata.sat.cfdi.examples");
cfd.sellar(key, cert);
Date date = new GregorianCalendar(2011, 01, 07, 8, 51, 00).getTime();
Date date = new GregorianCalendar(2011, 1, 7, 8, 51, 0).getTime();
UUID uuid = UUID.fromString("843a05d7-207d-4adc-91e8-bda7175bcda3");
tfd = new TFDv1c32(cfd, pacCert, uuid, date);
}
Expand Down

0 comments on commit ace92f5

Please sign in to comment.