Support

Home Forums Event Espresso Premium Incorrect time when someone registers

Incorrect time when someone registers

Posted: February 25, 2013 at 7:04 am


tradeunion training

February 25, 2013 at 7:04 am

Hi,

I have a problem where the incorrect time is shown when someone registers on for an event. It always seems to be an hour off. The correct time is set in espresso general settings and in WordPress general settings but not in the log when the user comes back from Realex.

Any idea what might be happening here?

Regards,
Seaghan


Garth

  • Support Staff

February 25, 2013 at 10:14 pm

Hi,

Are the blog posts on your website showing the correct time? I just want to be sure that your server’s clock settings are correct.


tradeunion training

February 26, 2013 at 3:50 am

Hi Garth,

yeah the blog posts are showing the correct date and time. I checked out phpinfo from the root directory and can confirm that the server time is correct too.

Regards,
Seaghan


Josh

  • Support Staff

February 26, 2013 at 8:59 am

Hi Seaghan,

I’m not sure why that would be happening, unless there’s something overriding your server’s settings. Event Espresso grabs the current time when it adds an attendee record to the database.

Can you try adding this code to a php file on the server and view the file in the browser and see what it returns?

<?php echo date('Y-m-d H:i:s'); ?>


tradeunion training

February 26, 2013 at 9:17 am

Hi Josh,

That PHP date function returned: 2013-02-26 17:14:20.

The phpinfo function returns 1361895133 (Tue, 26 Feb 2013 16:12:13 GMT) for SERVER[“REQUEST_TIME”].


Josh

  • Support Staff

February 26, 2013 at 9:37 am

There is your 1 hour difference. You could try contacting your the server’s administrator and ask them to look into this.


Brent Christensen

  • Support Staff

February 26, 2013 at 9:49 am

SERVER[“REQUEST_TIME”] marks when the current request began, and is the time set on the server. The PHP date() function initially utilizes the time set on the server but can then be offset in multiple ways, such as timezone settings or by adjusting for daylight savings.

You mention “the log when the user comes back from Realex” what log are you talking about? If that data is generated by Realex, then you may simply be seeing a timestamp from the Realex server, which of course would only be the same as your server’s time, if they were in the same time zone and set up identically.

The support post ‘Incorrect time when someone registers’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso