Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > OrderDate not saving View modes: 
User avatar
Certified Developer 8
Certified Developer 8
richard - 2/23/2012 8:16:34 PM
   
OrderDate not saving
This may well be a bug.

I am setting an order.OrderDate through the API but it seems to not save and by default sets the order date to DateTime.Now

v6.0.4297

User avatar
Certified Developer 8
Certified Developer 8
richard - 2/23/2012 8:18:02 PM
   
RE:OrderDate not saving
Forgot to say that I am setting the value to a DateTime in the future, not sure if this has any bearing on this not working as expected.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/15/2012 9:41:52 PM
   
RE:OrderDate not saving
Hi Richard,

The OrderDate of a new order is always (except when it's imported) set to DateTime.Now

If you're setting this for a new Order, then the solution for you will be to save the order first, set the future date and save the order again (OrderInfoProvider.SetOrderInfo(orderinfo)).

Regards,
Zdenek