• Resolved Sarun developer

    (@saruncloudspring)


    When I register a user to the site, the web hook for customer created shows wrong date_created and date_created_gmt.

    I created a user in 11:51 am GMT. My site is on GMT + 11 timezone (Melbourne)
    Here is the http response:
    {
    “id”: 6,
    “date_created”: “2018-12-17T11:51:54”,
    “date_created_gmt”: “2018-12-17T00:51:54”,
    “date_modified”: null,
    “date_modified_gmt”: null,
    “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”: “”
    },
    “shipping”: {
    “first_name”: “”,
    “last_name”: “”,
    “company”: “”,
    “address_1”: “”,
    “address_2”: “”,
    “city”: “”,
    “state”: “”,
    “postcode”: “”,
    “country”: “”
    },
    “is_paying_customer”: false,
    “orders_count”: 0,
    “total_spent”: “0.00”,
    “avatar_url”: “https://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=96&d=mm&r=g”,
    “meta_data”: [
    {
    “id”: 170,
    “key”: “wc_last_active”,
    “value”: “1545004800”
    }
    ]
    }

    The date_created need to show local site time of registration instead of GMT time and date_created_gmt need to show GMT time of the user registration.

    When I test other web hooks like coupon and order create, those are working as expected. On those date_created shows the local site time and date_created_gmt shows that local time converted to GMT

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User register time have issue’ is closed to new replies.