• Resolved stijn98765

    (@stijn98765)


    Dear,

    When we place a reservation on our site we get the succes email in our inbox as it should be, but we keep getting the same date for the reservation. The date is always 09/06/2014 (dd/mm/yyyy). So at the moment it isnt possible for us to find out the exact date of the reservation of our customers.

    Please help!!

    Thank you in advance!

    https://ww.wp.xz.cn/plugins/restaurant-reservations/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi stijn98765,

    I’d recommend you take the following steps to try to pinpoint the problem:

    1. Check your date and time formats for WordPress. You’ll find these under the Settings > General panel (where you set site title and tagline). Set them to one of the default options and see if that helps.

    2. If that doesn’t help, try switching to a default theme and deactivate all other plugins, and then test to see if that has fixed things. Some plugins or themes tamper with the date format in ways that might be causing problems.

    Thread Starter stijn98765

    (@stijn98765)

    Thanks for your respond! I find out the problem isnt there when the plugin q translate x is disabled.

    Do you know this plugin and is there a way to let them both work on my site?

    Thanks for you help this far!

    Hi stijn98765,

    I am familiar with the plugin. I suspect that the problem is not with the plugin itself, but with the date format setting connected to a particular language. See if you can find a place where date formats are defined for each language. There’s probably a bad date format in there somewhere that is causing the problem.

    Thread Starter stijn98765

    (@stijn98765)

    Hi NateWr,

    Again thanks for your respons!

    I tried what you said, and I saw that it was possible to change the date format for each language in Q Translate X. When I changed the format I notice that the format changes in the notification emails. But the date stays at 09/06/14 (dd-mm-yy).So it seems the format is not the problem. What could the problem be?

    Hi stijn98765,

    I’m not sure what would be causing the issue. What is the format string that is set? You can’t use a format like dd-mm-yy. It needs to use the PHP date formatting rules and should be a format that can be recognized by mysql2date.

    Thread Starter stijn98765

    (@stijn98765)

    Hi NateWr,

    I used the php date format: d m o

    Does mysql reconize this?

    When we installed q translate x, we also update the restaurant reservations plug-in at the same time, is it possible that this have something to do with the issue?

    Notable is that the date 09/06/14 shows up in every reservation, the date has to come from somewhere I think?

    Thanks already!

    Thread Starter stijn98765

    (@stijn98765)

    I found the solution!

    Q translate X offers the possibility to change the way of conversion of your date/time. I tried some possibilities and it turns out in a working solution!

    Either way thanks for your help!

    Hi stijn98765,

    Great, glad you were able to find a solution. If you have any more details on where the setting is that helped you resolve the problem, and what specific conversion format you used, that will help me help other people who run into this problem in the future.

    Sorry guys, i have the same problem. Could you tell me the exatct way to put the proper date format? Many thanks

    Hi gretagreiss,

    I’m not sure where stijn98765 found that qTranslate feature. But as a general rule, I recommend using Y-m-d H:i:s, at least to test to see this is the problem. This format will output YYYY-MM-DD HH:MM:SS, which is very widely compatible.

    Hi stijn98765!
    I face exactly the same problem. Disabling QTranslateX brings the date back to normal, but i was unable to figure out a format that would fix the issue. Could you please share the string that you entered into the QTranslateX date format field? Thank you!

    Hi anatolir,

    The safest string for you to test with would be this:

    Y-m-d H:i:s

    Thank you, but unfortunately that does not help. I have also tried all date formats I could find. Looks like the one of the plugins will have to go πŸ™

    Honestly, your plugin is the best in the Reservation category out of quite a few that I have tried. If I get the paid version will there be a way to resolve this issue?

    Hi anatolir,

    I’m afraid not. The commercial addons don’t change this behaviour in any way.

    Have you tried reaching out to the people behind qTranslate? They may be able to advise you on the best way to handle the date translation.

    Alternatively, I have heard some positive things about the Polylang plugin for translation.

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Date error’ is closed to new replies.