diff --git a/src/modules/Workers/WebService/WebService.cpp b/src/modules/Workers/WebService/WebService.cpp index d034b38..fe3fd1c 100644 --- a/src/modules/Workers/WebService/WebService.cpp +++ b/src/modules/Workers/WebService/WebService.cpp @@ -505,7 +505,7 @@ namespace Apostol { CheckKeyForNull("order", Action.c_str()); CheckKeyForNull("type", formType.c_str()); CheckKeyForNull("at", formAt.c_str()); - CheckKeyForNull("date", formDate.c_str()); + //CheckKeyForNull("date", formDate.c_str()); CheckKeyForNull("seller_address", formSellerAddress.c_str()); CheckKeyForNull("customer_address", formCustomerAddress.c_str()); CheckKeyForNull("payment_sum", formPaymentSum.c_str()); @@ -524,7 +524,7 @@ namespace Apostol { Deal["type"] = formType.c_str(); Deal["at"] = formAt.c_str(); - Deal["date"] = formDate.c_str(); + Deal["date"] = formDate.IsEmpty() ? UTCFormat(DateToString(UTC())).c_str() : formDate.c_str(); YAML::Node Seller = Deal["seller"]; @@ -592,7 +592,7 @@ namespace Apostol { CheckKeyForNull("order", Action.c_str()); CheckKeyForNull("type", formType.c_str()); CheckKeyForNull("at", formAt.c_str()); - CheckKeyForNull("date", formDate.c_str()); + //CheckKeyForNull("date", formDate.c_str()); CheckKeyForNull("seller_address", formSellerAddress.c_str()); CheckKeyForNull("customer_address", formCustomerAddress.c_str()); CheckKeyForNull("payment_sum", formPaymentSum.c_str()); @@ -611,7 +611,7 @@ namespace Apostol { Deal["type"] = formType.c_str(); Deal["at"] = formAt.c_str(); - Deal["date"] = formDate.c_str(); + Deal["date"] = formDate.IsEmpty() ? UTCFormat(DateToString(UTC())).c_str() : formDate.c_str(); YAML::Node Seller = Deal["seller"]; @@ -694,7 +694,7 @@ namespace Apostol { CheckKeyForNull("order", action.c_str()); CheckKeyForNull("type", formType.c_str()); CheckKeyForNull("at", formAt.c_str()); - CheckKeyForNull("date", formDate.c_str()); + //CheckKeyForNull("date", formDate.c_str()); CheckKeyForNull("seller.address", formSellerAddress.c_str()); CheckKeyForNull("customer.address", formCustomerAddress.c_str()); CheckKeyForNull("payment.sum", formPaymentSum.c_str()); @@ -713,7 +713,7 @@ namespace Apostol { Deal["type"] = formType.c_str(); Deal["at"] = formAt.c_str(); - Deal["date"] = formDate.c_str(); + Deal["date"] = formDate.IsEmpty() ? UTCFormat(DateToString(UTC())).c_str() : formDate.c_str(); YAML::Node Seller = Deal["seller"];