Orders OrderDate

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
CASE
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 49
Joined: Tue Jan 22, 2008 7:18 am

Orders OrderDate

Post by CASE » Tue Aug 25, 2009 6:45 am

My server is set to EST, the timezone offset is set to EST in the global settings, yet when a order gets written to the orders table the OrderDate is 4 hours into the future. I tried changing the offset but it is always off by 4 hours. UTC I am guessing. Is there another place to check to get the orderdate timestamp to align to the server time? Or is subtracting 1/6 of day my workaround. Thanks

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Orders OrderDate

Post by AbleMods » Tue Aug 25, 2009 8:34 am

You should be set to Eastern DAYLIGHT Time, not Eastern STANDARD Time.

Set it to EDT.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

CASE
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 49
Joined: Tue Jan 22, 2008 7:18 am

Re: Orders OrderDate

Post by CASE » Tue Aug 25, 2009 10:08 am

Yes, this is done, with the same results being posted in the orders table. 4 hours ahead. Any other options?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Orders OrderDate

Post by AbleMods » Tue Aug 25, 2009 11:02 am

Then the server itself has the wrong time or time zone set. Try CDT instead of EDT.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: Orders OrderDate

Post by afm » Tue Aug 25, 2009 11:34 am

I think the date in the database is always the server time in UTC. The AC offset you mention is used when you access the order date via the API, display the order date on site, or include it in an email.

If you are using the date directly from the database, then you will need to convert it back to local server time yourself.

If you want the clock on the server to match the date recorded in the database, then you will need to configure the server to use GMT.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

CASE
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 49
Joined: Tue Jan 22, 2008 7:18 am

Re: Orders OrderDate

Post by CASE » Tue Aug 25, 2009 11:46 am

Thanks, that makes sense.

Post Reply