Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Countdown date translation problem
    Marius Hänel
    Participant

    Hey Aakash,

    thanks for checking my problem.
    I’ve set up a new WordPress installation without any other plugin and there it works.
    I have no idee which other plugin caused this problem.
    In the next few days I will check which Plugin caused the problem.

    I’ve made this change to solve the problem for me:
    In the file includes -> display.php in line 277 I changed this line
    $countdown_time = new DateTime( $settings[ 'cdt_countdown' ], new DateTimeZone( $wp_timezone_name ) );
    To this
    $countdown_time = DateTime::createFromFormat('j. F Y H:i', $settings[ 'cdt_countdown' ]);

    But I guess it will only work when you have the same Datetime format like me (i.e. 7. Dezember 2021 00:00) in the Datepicker.

    Best regards,
    Marius

    in reply to: Countdown date translation problem
    Marius Hänel
    Participant

    Hey Aakash,

    thanks for your answer.

    I’m not using a translation Plugin. We’re just use a german WordPress installation from the official WordPress site.

    When I enter 2022/12/31 23:00 manually the Datepicker changed the Date automatically back to 7. Dezember 2021 00:00 on click outside of the input.

    I guess it’s maybe a region based feature from the UI-Datepicker with the used Settings.

    I “fixed” this problem for myself temporarily with a code change but as long as I have no other solution I’m not able to update the Plugin without override my quick fix changes.

    Best regards,
    Marius

Viewing 2 posts - 1 through 2 (of 2 total)

Subscribe to our Newsletter

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

By using this website, you agree to our Terms