Skip to content

Commit

Permalink
Merge pull request #59 from tarunbhardwaj/develop
Browse files Browse the repository at this point in the history
Fix date_format while fetching orders #6657
  • Loading branch information
Sharoon Thomas committed Jan 14, 2015
2 parents b6bc0ea + c969d79 commit 832405f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion magento_.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,12 @@ def import_order_from_store_view(self):
'state': {'in': order_states_to_import_in},
}
if self.last_order_import_time:
last_order_import_time = \
self.last_order_import_time.replace(microsecond=0)
filter.update({
'updated_at': {'gteq': self.last_order_import_time},
'updated_at': {
'gteq': last_order_import_time.isoformat(' ')
},
})
self.write([self], {
'last_order_import_time': datetime.utcnow()
Expand Down

0 comments on commit 832405f

Please sign in to comment.