Tony
November 26, 2021 at 6:33 am
Hi there,
Event Espresso stores all datetimes as UTC+0 and then applies the offset based on the site settings from there.
I went through and set up a site using Sydney for the timezone, then added multiple frontend and admin registrations onto an event, all of those show the correct values in the database and on the REST API.
Usually when something like this happens its because another plugin is changing the servers timezone, how did you check the above?
If you use the WP Health Check & Troubleshooting plugin:
https://wordpress.org/plugins/health-check/
Then go to Tools -> Site Health -> Troubleshooting and enable Trobuelshooting mode.
What that does is disable all plugins and switches the site to a default theme, but only for you (the logged-in admin), so with that enabled go to Troubleshooting mode in the admin bar and manage active plugins.
Enable Event Espresso in troubleshooting mode, do the dates show correctly then?
(Once finished with Troubleshooting mode, go to the admin bar again and deactivate it to switch back to normal. You’ll also find a button to do so on the Dashboard under /wp-admin/)
You mentioned this is ‘recent’ registrations so may I ask what has changed on the site between when this was working and now?
TTBC
November 28, 2021 at 2:32 pm
Add New Note to this Reply
Hi Tony,
Things are still not looking correct on the REG_date and still saying I booked in the future more detailed notes of what I am seeing below.
I did what you said and did a health check all was good.
— WordPress TIMEZONE is correct Australia/Sydney.
— Server timezone set to Etc/UTC (same as UTC)
As you will see from the data below the GMT is not calculating correctly.
What I am seeing from the API call, is that the GMT time is loading local time in my case Australia/Sydney then Reg_date goes forward the number of hours between UTC and Australia/Sydney as you see below.
This looks to be the AU/Sydney time of when the registration was created.
“REG_date_gmt”: “2021-11-29T07:10:09”,
And the Reg_date has added time into the future
“REG_date”: “2021-11-29T18:10:09”,
The attendee first the last name is timestamped with my timezone Pacific/Auckland time 2 hours ahead of Sydney as yo can see on the first and last name fields
“ATT_full_name”: “mike 2021-11-29 09:11:09hill 2021-11-29 09:11:09”,
The API URL i ran up in POSTMAN, added a where on REG_ID to get the test record.
https://buscircle.com/wp-json/ee/v4.8.36/registrations?include=Transaction,Event,Ticket,Attendee,Answer&where%5BREG_ID%5D=200016487&where%5BREG_date_gmt%5D%5B>%3d%5D=2021-11-15T01%3A55%3A23&order_by%5BREG_date_gmt%5D=ASC
Full JSON output from above a GET request
[
{
“REG_ID”: 200016487,
“EVT_ID”: 22008017,
“ATT_ID”: 22008981,
“TXN_ID”: 22005524,
“TKT_ID”: 9000942,
“STS_ID”: “RAP”,
“REG_date”: “2021-11-29T18:10:09”,
“REG_final_price”: {
“raw”: 0,
“pretty”: “$0.00 <span class=\”currency-code\”>(AUD)</span>”
},
“REG_paid”: {
“raw”: 0,
“pretty”: “$0.00 <span class=\”currency-code\”>(AUD)</span>”
},
“REG_session”: “c1nk8xjdpgdcusxdkkazqe5zefso96fl”,
“REG_code”: “22005524-90009421-xfz7”,
“REG_url_link”: “1-wynsfpxav2tvg0ta2kpoapffmxzqwgyd”,
“REG_count”: 1,
“REG_group_size”: 1,
“REG_att_is_going”: false,
“REG_deleted”: false,
“REG_date_gmt”: “2021-11-29T07:10:09”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations” ;
}
],
“https://api.eventespresso.com/event” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/event” ;,
“single”: true
}
],
“https://api.eventespresso.com/attendee” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/attendee” ;,
“single”: true
}
],
“https://api.eventespresso.com/transaction” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/transaction” ;,
“single”: true
}
],
“https://api.eventespresso.com/ticket” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/ticket” ;,
“single”: true
}
],
“https://api.eventespresso.com/status” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/status” ;,
“single”: true
}
],
“https://api.eventespresso.com/answers” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/answers” ;,
“single”: false
}
],
“https://api.eventespresso.com/checkins” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/checkins” ;,
“single”: false
}
],
“https://api.eventespresso.com/registration_payments” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/registration_payments” ;,
“single”: false
}
],
“https://api.eventespresso.com/payments” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/payments” ;,
“single”: false
}
],
“https://api.eventespresso.com/messages” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/messages” ;,
“single”: false
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/registrations/200016487/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: [],
“event”: {
“EVT_ID”: 22008017,
“EVT_name”: “** Test Event Australia **++++**”,
“EVT_desc”: {
“raw”: “*** This is a holding place for a test event only ***”,
“rendered”: “<p>*** This is a holding place for a test event only ***</p>\n”
},
“EVT_slug”: “test-event-australia”,
“EVT_created”: “2021-11-26T16:32:39”,
“EVT_short_desc”: “”,
“EVT_modified”: “2021-11-29T06:44:04”,
“EVT_wp_user”: 1008,
“parent”: 0,
“EVT_order”: 0,
“status”: {
“raw”: “publish”,
“pretty”: “Published”
},
“password”: “”,
“comment_status”: “open”,
“ping_status”: “closed”,
“EVT_display_desc”: false,
“EVT_display_ticket_selector”: true,
“EVT_visible_on”: “2021-11-26T05:32:40”,
“EVT_additional_limit”: 10,
“EVT_default_registration_status”: {
“raw”: “RPP”,
“pretty”: “PENDING_PAYMENT”
},
“EVT_member_only”: false,
“EVT_phone”: “”,
“EVT_allow_overflow”: false,
“EVT_timezone_string”: “”,
“EVT_external_URL”: “”,
“EVT_donations”: false,
“EVT_created_gmt”: “2021-11-26T05:32:39”,
“EVT_modified_gmt”: “2021-11-28T19:44:04”,
“EVT_visible_on_gmt”: “2021-11-25T18:32:40”,
“link”: “https://buscircle.com/briefings/test-event-australia/” ;,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events” ;
}
],
“https://api.eventespresso.com/registrations” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/registrations” ;,
“single”: false
}
],
“https://api.eventespresso.com/datetimes” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/datetimes” ;,
“single”: false
}
],
“https://api.eventespresso.com/question_groups” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/question_groups” ;,
“single”: false
}
],
“https://api.eventespresso.com/event_question_groups” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/event_question_groups” ;,
“single”: false
}
],
“https://api.eventespresso.com/venues” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/venues” ;,
“single”: false
}
],
“https://api.eventespresso.com/term_relationships” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/term_relationships” ;,
“single”: false
}
],
“https://api.eventespresso.com/term_taxonomies” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/term_taxonomies” ;,
“single”: false
}
],
“https://api.eventespresso.com/message_template_groups” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/message_template_groups” ;,
“single”: false
}
],
“https://api.eventespresso.com/attendees” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/attendees” ;,
“single”: false
}
],
“https://api.eventespresso.com/wp_user” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/wp_user” ;,
“single”: true
}
],
“https://api.eventespresso.com/post_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/post_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/change_logs” ;,
“single”: false
}
],
“https://api.eventespresso.com/promotion_objects” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/promotion_objects” ;,
“single”: false
}
],
“https://api.eventespresso.com/people” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/people” ;,
“single”: false
}
],
“https://api.eventespresso.com/person_posts” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/events/22008017/person_posts” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
“attendee”: {
“ATT_ID”: 22008981,
“ATT_full_name”: “mike 2021-11-29 09:11:09hill 2021-11-29 09:11:09”,
“ATT_bio”: {
“raw”: “No Biography Provided”,
“rendered”: “<p>No Biography Provided</p>\n”
},
“ATT_slug”: “mike-2021-11-29-091109-hill-2021-11-29-091109”,
“ATT_created”: “2021-11-29T18:10:09”,
“ATT_short_bio”: “No Biography Provided”,
“ATT_modified”: “2021-11-29T18:10:09”,
“ATT_author”: 1007,
“status”: {
“raw”: “publish”,
“pretty”: “Published”
},
“password”: “”,
“comment_status”: “open”,
“ping_status”: “open”,
“ATT_fname”: “mike 2021-11-29 09:11:09”,
“ATT_lname”: “hill 2021-11-29 09:11:09”,
“ATT_address”: “”,
“ATT_address2”: “”,
“ATT_city”: “City”,
“STA_ID”: 0,
“CNT_ISO”: “NZ”,
“ATT_zip”: “ATT_zip”,
“ATT_email”: “mike@cloudtech.co.nz”,
“ATT_phone”: “021758222”,
“ATT_created_gmt”: “2021-11-29T07:10:09”,
“ATT_modified_gmt”: “2021-11-29T07:10:09”,
“link”: “https://buscircle.com/contacts/mike 2021-11-29 09:11:09-hill 2021-11-29 09:11:09/”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees” ;
}
],
“https://api.eventespresso.com/registrations” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/registrations” ;,
“single”: false
}
],
“https://api.eventespresso.com/state” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/state” ;,
“single”: true
}
],
“https://api.eventespresso.com/country” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/country” ;,
“single”: true
}
],
“https://api.eventespresso.com/events” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/events” ;,
“single”: false
}
],
“https://api.eventespresso.com/wp_user” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/wp_user” ;,
“single”: true
}
],
“https://api.eventespresso.com/messages” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/messages” ;,
“single”: false
}
],
“https://api.eventespresso.com/term_relationships” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/term_relationships” ;,
“single”: false
}
],
“https://api.eventespresso.com/term_taxonomies” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/term_taxonomies” ;,
“single”: false
}
],
“https://api.eventespresso.com/post_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/post_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/attendees/22008981/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
“transaction”: {
“TXN_ID”: 22005524,
“TXN_timestamp”: “2021-11-29T18:10:09”,
“TXN_total”: {
“raw”: 0,
“pretty”: “$0.00 <span class=\”currency-code\”>(AUD)</span>”
},
“TXN_paid”: {
“raw”: 0,
“pretty”: “$0.00 <span class=\”currency-code\”>(AUD)</span>”
},
“STS_ID”: “TCM”,
“TXN_session_data”: “TXNsessionData”,
“TXN_hash_salt”: “”,
“PMD_ID”: 0,
“TXN_reg_steps”: “TXNregSteps”,
“TXN_timestamp_gmt”: “2021-11-29T07:10:09”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions” ;
}
],
“https://api.eventespresso.com/registrations” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/registrations” ;,
“single”: false
}
],
“https://api.eventespresso.com/payments” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/payments” ;,
“single”: false
}
],
“https://api.eventespresso.com/status” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/status” ;,
“single”: true
}
],
“https://api.eventespresso.com/line_items” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/line_items” ;,
“single”: false
}
],
“https://api.eventespresso.com/payment_method” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/payment_method” ;,
“single”: true
}
],
“https://api.eventespresso.com/messages” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/messages” ;,
“single”: false
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/change_logs” ;,
“single”: false
}
],
“https://api.eventespresso.com/promotion_objects” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/transactions/22005524/promotion_objects” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
“ticket”: {
“TKT_ID”: 9000942,
“TTM_ID”: 0,
“TKT_name”: “VIP”,
“TKT_description”: {
“raw”: “”,
“rendered”: “”
},
“TKT_start_date”: “2021-11-26T05:28:00”,
“TKT_end_date”: “2021-12-26T23:59:00”,
“TKT_min”: 1,
“TKT_max”: 1,
“TKT_price”: {
“raw”: 0,
“pretty”: “$0.00 <span class=\”currency-code\”>(AUD)</span>”
},
“TKT_sold”: 0,
“TKT_qty”: 10000,
“TKT_reserved”: 0,
“TKT_uses”: 0,
“TKT_required”: false,
“TKT_taxable”: true,
“TKT_is_default”: false,
“TKT_order”: 7,
“TKT_row”: 7,
“TKT_deleted”: false,
“TKT_wp_user”: 1008,
“TKT_parent”: 0,
“TKT_start_date_gmt”: “2021-11-25T18:28:00”,
“TKT_end_date_gmt”: “2021-12-26T12:59:00”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets” ;
}
],
“https://api.eventespresso.com/datetimes” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/datetimes” ;,
“single”: false
}
],
“https://api.eventespresso.com/datetime_tickets” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/datetime_tickets” ;,
“single”: false
}
],
“https://api.eventespresso.com/prices” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/prices” ;,
“single”: false
}
],
“https://api.eventespresso.com/ticket_template” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/ticket_template” ;,
“single”: true
}
],
“https://api.eventespresso.com/registrations” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/registrations” ;,
“single”: false
}
],
“https://api.eventespresso.com/wp_user” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/wp_user” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/tickets/9000942/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
“answers”: [
{
“ANS_ID”: 46890,
“REG_ID”: 200016487,
“QST_ID”: 12,
“ANS_value”: “Orginisation”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46890” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46890/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46890/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46890/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46890/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46891,
“REG_ID”: 200016487,
“QST_ID”: 13,
“ANS_value”: “Job Title”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46891” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46891/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46891/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46891/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46891/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46892,
“REG_ID”: 200016487,
“QST_ID”: 14,
“ANS_value”: “2021-11-29 09:11:09”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46892” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46892/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46892/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46892/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46892/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46893,
“REG_ID”: 200016487,
“QST_ID”: 15,
“ANS_value”: “mr”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46893” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46893/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46893/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46893/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46893/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46894,
“REG_ID”: 200016487,
“QST_ID”: 17,
“ANS_value”: [
“Yes”
],
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46894” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46894/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46894/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46894/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46894/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46895,
“REG_ID”: 200016487,
“QST_ID”: 18,
“ANS_value”: “2021-11-29 09:11:09”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46895” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46895/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46895/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46895/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46895/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46896,
“REG_ID”: 200016487,
“QST_ID”: 19,
“ANS_value”: “FOOD”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46896” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46896/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46896/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46896/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46896/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
},
{
“ANS_ID”: 46897,
“REG_ID”: 200016487,
“QST_ID”: 21,
“ANS_value”: “ea@hill.net.nz”,
“_links”: {
“self”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46897” ;
}
],
“collection”: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers” ;
}
],
“https://api.eventespresso.com/registration” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46897/registration” ;,
“single”: true
}
],
“https://api.eventespresso.com/question” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46897/question” ;,
“single”: true
}
],
“https://api.eventespresso.com/extra_metas” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46897/extra_metas” ;,
“single”: false
}
],
“https://api.eventespresso.com/change_logs” ;: [
{
“href”: “https://buscircle.com/wp-json/ee/v4.8.36/answers/46897/change_logs” ;,
“single”: false
}
]
},
“_calculated_fields”: {
“_protected”: []
},
“_protected”: []
}
]
}
]
TTBC
November 29, 2021 at 5:29 pm
Add New Note to this Reply
Hi,
I also have a set of bad dates where it appears to be making the REG_date in the API be in the future and the REG_date_gmt to be the local Sydney time when the ticket was created.
Can you explain why this is happening as it is not just a one-off occurrence?
This is messing with our API imported as we are using the reg date as the reference to obtain the newest records each time we fetch a new set of registrations. Hence sometimes the GMT is correct so the ticket is missed as it goes back to the correct time. eg Australia/Sydney -11 hours to get GMT. While other times EE is storing the Australia/Sydney time, not the GMT date.
SCREEN SHOT OF POSTMAN API FETCH
AS you can see from my laptop Pacific/Auckland time in the attached link
TTBC
December 1, 2021 at 7:24 pm
Add New Note to this Reply
Has anyone looked into this ticket for me as the REG_date and REG_date_gmt are giving me dates/times into the future sometimes and the past other times?
This is messing up our import of data into a SUGARCRM as we are missing some records as we go from the last modified date of the last record fetched.
These records in turn then generate tickets and guestlists for the end-user. It does not happen all the time which is why I’m baffled need help, I did what Tony had said above and all was fine, the timezones on the site(s) are correct.
I also know that it is a future date as we are in NZ +13, AUS +11 I have also replicated this several times when creating a ticket and normally it is when you put more than one type of ticket on an order. Not the same ticket types either.
TTBC
December 2, 2021 at 4:35 pm
Add New Note to this Reply
Hi Tony,
Yes, these registrations are being added as normal via the checkout. Also, EE is 95% out of the box, what we do is run multi-ticket types on events. IT is a multi-site environment and is only like this for the currency on Stripe payments.
— buscircle.com
— nz.buscircle.com
— sg.buscircle.com
The point in time is a few months back to around July or even a bit further than that where the dates are out of sync.
I have also given you a link to a small sample from the wp_esp_registration table and highlighted in blue where you can see the date change
_wp_esp_registration
Also, can you give me some good places in EE you would suggest to add in some logging so that I can trace this further from my end?
I am open to a team, zoom or another video conference if that helps where I can share my screen, just let me know and ill drop anything else I’m doing to jump on a call with you