diff --git a/src/modules/Workers/WebSocket/WebSocket.cpp b/src/modules/Workers/WebSocket/WebSocket.cpp index 5cb055e..f3430f3 100644 --- a/src/modules/Workers/WebSocket/WebSocket.cpp +++ b/src/modules/Workers/WebSocket/WebSocket.cpp @@ -630,7 +630,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()); @@ -649,7 +649,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"]; @@ -717,7 +717,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()); @@ -736,7 +736,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"]; @@ -819,7 +819,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()); @@ -838,7 +838,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"];