Customer created webhook gives wrong date_created
-
Hi,
When a customer register on our site, the “customer created” webhook gives a wrong date_created and date_created_gmt.
For example, if a customer created at 2018-12-17 07:12:21 GMT, the webhook shows the data like this:
{
“id”: 4,
“date_created”: “2018-12-17T07:12:21”,
“date_created_gmt”: “2018-12-17T01:42:21”,
“date_modified”: “2018-12-17T12:42:21”,
“date_modified_gmt”: “2018-12-17T07:12:21”,
“email”: “[email protected]”,
“first_name”: “”,
“last_name”: “”,
“role”: “customer”,
“username”: “test”,
“billing”: {
“first_name”: “”,
“last_name”: “”,
“company”: “”,
“address_1”: “”,
“address_2”: “”,
“city”: “”,
“state”: “”,
“postcode”: “”,
“country”: “”,
“email”: “”,
“phone”: “”
},Here the date_created is actually the customer created time in GMT and the date_created_gmt is totally wrong. My site timezone is GMT + 5.30.
I also tested this with another website and got same result ( That one also shows date_created as GMT time instead of the site local time)
Please help
- The topic ‘Customer created webhook gives wrong date_created’ is closed to new replies.