Skip to content

Commit 19c512f

Browse files
Fixed date format, closes woocommerce#124-
1 parent 02aeb1e commit 19c512f

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

source/includes/v2/_reports.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Use the following filters for any type of report to specify the period of sales:
99
| Filter | Type | Description |
1010
| ---------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1111
| `period` | string | The supported periods are: `week`, `month`, `last_month`, and `year`. If you use an invalid period, `week` is used. If you don't specify a period, the current day is used |
12-
| `date_min` | string | Return sales for a specific start date. The date need to be in the `YYYY-MM-AA` format |
13-
| `date_max` | string | Return sales for a specific end date. The dates need to be in the `YYYY-MM-AA` format. Required to set the `filter[date_min]` too |
12+
| `date_min` | string | Return sales for a specific start date. The date need to be in the `YYYY-MM-DD` format |
13+
| `date_max` | string | Return sales for a specific end date. The dates need to be in the `YYYY-MM-DD` format. Required to set the `filter[date_min]` too |
1414

1515
## View List Of Reports ##
1616

source/includes/v3/_reports.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Use the following filters for any type of report to specify the period of sales:
99
| Filter | Type | Description |
1010
| ---------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1111
| `period` | string | The supported periods are: `week`, `month`, `last_month`, and `year`. If you use an invalid period, `week` is used. If you don't specify a period, the current day is used |
12-
| `date_min` | string | Return sales for a specific start date. The date need to be in the `YYYY-MM-AA` format |
13-
| `date_max` | string | Return sales for a specific end date. The dates need to be in the `YYYY-MM-AA` format. Required to set the `filter[date_min]` too |
12+
| `date_min` | string | Return sales for a specific start date. The date need to be in the `YYYY-MM-DD` format |
13+
| `date_max` | string | Return sales for a specific end date. The dates need to be in the `YYYY-MM-DD` format. Required to set the `filter[date_min]` too |
1414

1515
## View List of Reports ##
1616

source/includes/wp-api-v1/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3856,11 +3856,11 @@ woocommerce.get("").parsed_response
38563856
},
38573857
"date_min": {
38583858
"required": false,
3859-
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-AA format."
3859+
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-DD format."
38603860
},
38613861
"date_max": {
38623862
"required": false,
3863-
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-AA format."
3863+
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-DD format."
38643864
}
38653865
}
38663866
}
@@ -3900,11 +3900,11 @@ woocommerce.get("").parsed_response
39003900
},
39013901
"date_min": {
39023902
"required": false,
3903-
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-AA format."
3903+
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-DD format."
39043904
},
39053905
"date_max": {
39063906
"required": false,
3907-
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-AA format."
3907+
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-DD format."
39083908
}
39093909
}
39103910
}

source/includes/wp-api-v1/_reports.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ woocommerce.get("reports/sales", query).parsed_response
194194
|------------|--------|-------------------------------------------------------------------------------------------------------------------|
195195
| `context` | string | Scope under which the request is made; determines fields present in response. Default is `view`. Options: `view`. |
196196
| `period` | string | Report period. Default is `week`. Options: `week`, `month`, `last_month` and `year` |
197-
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-AA format. |
198-
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-AA format. |
197+
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-DD format. |
198+
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-DD format. |
199199

200200
## Retrieve top sellers report ##
201201

@@ -298,5 +298,5 @@ woocommerce.get("reports/top_sellers", query).parsed_response
298298
|------------|--------|-------------------------------------------------------------------------------------------------------------------|
299299
| `context` | string | Scope under which the request is made; determines fields present in response. Default is `view`. Options: `view`. |
300300
| `period` | string | Report period. Default is `week`. Options: `week`, `month`, `last_month` and `year` |
301-
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-AA format. |
302-
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-AA format. |
301+
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-DD format. |
302+
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-DD format. |

source/includes/wp-api-v2/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9002,12 +9002,12 @@ woocommerce.get("").parsed_response
90029002
},
90039003
"date_min": {
90049004
"required": false,
9005-
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-AA format.",
9005+
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-DD format.",
90069006
"type": "string"
90079007
},
90089008
"date_max": {
90099009
"required": false,
9010-
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-AA format.",
9010+
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-DD format.",
90119011
"type": "string"
90129012
}
90139013
}
@@ -9050,12 +9050,12 @@ woocommerce.get("").parsed_response
90509050
},
90519051
"date_min": {
90529052
"required": false,
9053-
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-AA format.",
9053+
"description": "Return sales for a specific start date, the date need to be in the YYYY-MM-DD format.",
90549054
"type": "string"
90559055
},
90569056
"date_max": {
90579057
"required": false,
9058-
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-AA format.",
9058+
"description": "Return sales for a specific end date, the date need to be in the YYYY-MM-DD format.",
90599059
"type": "string"
90609060
}
90619061
}

source/includes/wp-api-v2/_reports.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ woocommerce.get("reports/sales", query).parsed_response
194194
|------------|--------|-------------------------------------------------------------------------------------------------------------------|
195195
| `context` | string | Scope under which the request is made; determines fields present in response. Default is `view`. Options: `view`. |
196196
| `period` | string | Report period. Default is `week`. Options: `week`, `month`, `last_month` and `year` |
197-
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-AA format. |
198-
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-AA format. |
197+
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-DD format. |
198+
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-DD format. |
199199

200200
## Retrieve top sellers report ##
201201

@@ -298,5 +298,5 @@ woocommerce.get("reports/top_sellers", query).parsed_response
298298
|------------|--------|-------------------------------------------------------------------------------------------------------------------|
299299
| `context` | string | Scope under which the request is made; determines fields present in response. Default is `view`. Options: `view`. |
300300
| `period` | string | Report period. Default is `week`. Options: `week`, `month`, `last_month` and `year` |
301-
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-AA format. |
302-
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-AA format. |
301+
| `date_min` | string | Return sales for a specific start date, the date need to be in the YYYY-MM-DD format. |
302+
| `date_max` | string | Return sales for a specific end date, the date need to be in the YYYY-MM-DD format. |

0 commit comments

Comments
 (0)