-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add dates_are_gmt parameter to REST API
#28132
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
Conversation
before_gmt and before_gmt parameters to REST APIbefore_gmt and after_gmt parameters to REST API
|
Hi @TimBHowe, thanks for your contribution. The problem I see with your approach is that it makes What if instead you add a new bool Additionally, any addition or change in request arguments needs to be accompanied by the corresponding update in the |
…mn with the before and after parameters for the order RESTAPI
|
Updated the pull requests as requested. Added the Also added the new parameter to The new example request would look something like this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I'm approving. Could you please update the pull request title and description? They're still referring to the old before_gmt and after_gmt parameters. I'll merge afterwards.
|
Updated the description of the pull request. Let me know if you need any other changes. |
|
It's all good now, merging. |
before_gmt and after_gmt parameters to REST APIdates_are_gmt parameter to REST API
All Submissions:
Changes proposed in this Pull Request:
Added the
dates_are_gmtparameters to allow the before and after parameters to use thepost_date_gmtcolumn if it is true.Closes #28111
Related PR in documentation repository: woocommerce/woocommerce-rest-api-docs#203
How to test the changes in this Pull Request:
Example: https://localhost.com/wp-json/wc/v3/orders?dates_are_gmt=true&after=2021-04-24T06:00:00&before=2021-04-24T14:00:00&consumer_key=xxx&consumer_secret=xxx
Other information:
Changelog entry