Skip to content

Date differences when getting post_date with SQLite #52

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

Open
swissspidy opened this issue Oct 24, 2023 · 0 comments
Open

Date differences when getting post_date with SQLite #52

swissspidy opened this issue Oct 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@swissspidy
Copy link
Member

In WP-CLI we noticed something that I beelieve is a bug in this plugin. Please correct me if I'm wrong though and this is supposed to be addressed at another level.

When we run wp post update 1234 --post_date='2005-01-24T09:52:00.000Z' --post_status='publish' --edit_date=1 and subsequently run wp post get 1234--field=post_date the output is different between MySQL and SQLite.

In MySQL:

$ wp post get 1234--field=post_date
2005-01-24 09:52:00

In SQLite with this plugin:

$ wp post get 1234--field=post_date
2005-01-24T09:52:00.000Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant