Author: ashish
Date: Mon Sep 21 12:26:24 2009
New Revision: 817225
URL:
http://svn.apache.org/viewvc?rev=817225&view=revLog:
Now we don't need to parse date. As we are sending the OFBiz supported date format from the previous commit.
Modified:
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java
Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java?rev=817225&r1=817224&r2=817225&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java Mon Sep 21 12:26:24 2009
@@ -915,9 +915,7 @@
// set the order date with the eBay created date
Timestamp orderDate = UtilDateTime.nowTimestamp();
if (UtilValidate.isNotEmpty((String) context.get("createdDate"))) {
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
- Date createdDate = sdf.parse((String) context.get("createdDate"));
- orderDate = new Timestamp(createdDate.getTime());
+ orderDate = UtilDateTime.toTimestamp((String) context.get("createdDate"));
}
cart.setOrderDate(orderDate);
// Before import the order from eBay to OFBiz is mandatory that the payment has be received