• Resolved nurbs65

    (@nurbs65)


    Hi xnau,

    I have a strange problem.

    I set in my settings:
    Strictly Input Date Format (looks like this: 26.07.2015) = marked Yes
    Date Format = d.m.Y

    Now, if I input a date (26.07.2015) in the field and save the record so the input date is not correct. The value is 25.07.2015 insteed 26.07.2015.(Strange 1 day missing) Do you have an idee?

    I try it with Strictly Input Date Format marked and unmarked.

    https://ww.wp.xz.cn/plugins/participants-database/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Roland Barker

    (@xnau)

    I suggest you check your WP timezone setting and also the PHP timezone setting (usually this is in your hosting control panel)

    Thread Starter nurbs65

    (@nurbs65)

    Hi Xnau,

    thank you for your fast answere. I don’t know whats wrong.

    I checked the timezone setting in my wordpress installation and on php settings in the hosting control panel. Both values are set to timezone Berlin.

    I also noticed that when i change a second date field then the first date field will also changed, this by using different field names. I used 70 fields in 12 groups. Is this to much for the participants database?

    My site is still under construction. Something is wrong with the date fields.

    Plugin Author Roland Barker

    (@xnau)

    No, it’s not too many fields. Does the date change when saved every time, or only sometimes?

    Thread Starter nurbs65

    (@nurbs65)

    This happens each time if you save the record. All date fields will be changed. What do you thing should i do? Reinstall?

    Plugin Author Roland Barker

    (@xnau)

    Reinstalling won’t help, because whatever the problem is, it’s not caused by a change in the code. I’m sorry, without some pretty deep debugging, I can’t tell you what the problem is. The plugin doesn’t normally do this, of course.

    Thread Starter nurbs65

    (@nurbs65)

    I think you’re right. Nevertheless, I’ll try a reinstallation with a new data import. Otherwise I have no way. Maybe it runs. If it works then I will write this here again. Thank you for your help.

    Thread Starter nurbs65

    (@nurbs65)

    I have the plugin new installed with the default data. I have added a new date field. When I save the record the date will every time changed. .. It is as before.

    I do not know what happened. Everything is standard. Do you think that it may be possible that we have a confilct with another plugin? I am the only one who has these problems?

    Participans Database is a great plugin and you did a very good work.
    Please, please help me.

    Thread Starter nurbs65

    (@nurbs65)

    Same problem if I disable all plugins except Participants Database.

    Thread Starter nurbs65

    (@nurbs65)

    Used PHP Version 5.4 – Run PHP as FastCGI-Application

    Plugin Author Roland Barker

    (@xnau)

    People sometimes have issues with a timezone shift due the configuration of the web server. For instance, if the PHP timezone setting is not active in all scripts, then you can have a situation where the PHP timezone defaults back to the server timezone. You my need to make sure that your PHP timezone is set globally.

    Thread Starter nurbs65

    (@nurbs65)

    The global timezone is correctly set. Is it possible, that an old options value is not up to date? I want to sure, when I install the plugin again that no options value is set. How can I find all participants database option values in the wordpress table präfix_options and delete the entries for a new clear installation? Does this make sense?

    Plugin Author Roland Barker

    (@xnau)

    The Participants Database plugin doesn’t set the timezone, so there isn’t a value in the plugin options that affects the timezone. The setting it uses is the current PHP timezone setting. Where that setting comes from can vary depending on your particular setup.

    It is possible for the timezone setting to be correct in one script, but in another script, it will revert to the server default timezone. This happens if, for instance, the timezone is set in a php.ini file in the web root, but due to the server configuration, that setting is not active in all subdirectories. You may want to ask your web host about this.

    You may find that setting the timezone in the wp-config.php helps to ensure the PHP timezone is consistent in all scripts.

    Thread Starter nurbs65

    (@nurbs65)

    It works, you were right. :-).
    Here is the solution. I add the functions.php with the following code:

    function op_fix_timezone() {
    	date_default_timezone_set('Europe/Berlin');
    }
    add_action('init', 'op_fix_timezone', 1);

    Now it works and I am happy.
    Thank you, for your helpful support and the great plugin.

    Plugin Author Roland Barker

    (@xnau)

    Nice solution!

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Input Date is not correct’ is closed to new replies.