-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using "Since last successful import" option, ignores the last successful import date. #657
Comments
We have same problem, thanks for sorting out @robinero Hope this will be fixed soon. for time being we will create composer patch for this. |
@Bartlomiejsz, bit stupid of me, I only checked the PRs after creating the issue. Although I'm not sure if Akeneo merges PRs, so here's hoping they do after seeing this issue. |
Issue still exists in v104.0.7. |
@magentix @Dnd-Gimix or someone else, please merge the fix in #646. Its not that hard? There is a bug, the solution is presented, but still, nobody has merged it. This issue is really annoying to apply a patch to every customer. Edit: |
Yes please merge the fix @magentix @Dnd-Gimix . Our imports take over 4 hours without the "last successful import" option. |
Hello, The fix will be included in 104.3.14. |
Environment and configuration
Steps to reproduce
bin/magento akeneo_connector:import --code=product
(or schedule the job)Expected result
Actual result
When running the connector the "last successful executed date" is set per family by the following code:
https://github.com/akeneo/magento2-connector-community/blob/v104.0.0/Executor/JobExecutor.php#L356
This line of code uses
date('y-m-d H:i:s');
, which will use a two digit year format.The Akeneo API however expects a 4 digit year format:
https://api.akeneo.com/documentation/filter.html#on-their-creation-or-update-date.
This normally wouldn't be a problem when inserting this value in a
datetime
column,but
last_success_executed_date
uses text to allow saving the JSON format:https://github.com/akeneo/magento2-connector-community/blob/v104.0.0/etc/db_schema.xml#L80
To fix this, simply replace
date('y-m-d H:i:s');
withdate('Y-m-d H:i:s');
for the following:Using the same format, the following should probably also be changed:
The text was updated successfully, but these errors were encountered: