Originally Posted by
DrByte
now() is correct and uses the database server's date/time. If it's not storing correctly, then you've got something amuck with your database. If it's not displaying correctly, then you've likely got something amuck with your date formats.
You shouldn't have to duplicate a whole lot of code to create orders. Best to simply invoke the built-in orders class and use its methods to do the real work. Any other duplication of code that you do will just make more work for you to maintain and great headaches for the merchants using your code.
somehow that now() isnt working. i parsed the date from the order report from amazon which has some thing like
Code:
<OrderDate>2009-11-26T12:48:18.000Z</OrderDate>
but there will be a timezone issue. the above date is PDT.
In zencart, how can i find the timezone that the site uses for all orders and convert the time reported to the site's time zone so that all orders from Amazon are consistent with orders from other payment gateways.
- Bala
Bookmarks