MB Builder - datetime with date picker options not working on refresh

Support MB Builder MB Builder - datetime with date picker options not working on refresh

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #44737
    AdrienAdrien
    Participant

    Hello,

    So I have this Datetime Meta Box field, set up like this: https://markuphero.com/share/rJKSH4H0yQdpfKi1E861
    And when I select the date and time, inside my Meta Box datetime field above I have the correct name in French so "Mardi" for "Tuesday": https://markuphero.com/share/LOqNn54IQHLtJz0YrgOX
    But when the page is saved and then refresh the field display English name, why is that?
    https://markuphero.com/share/OJgHien7gcHkwh5omEpC

    My WordPress user account has interface in French

    Thank for your help!

    #44749
    PeterPeter
    Moderator

    Hello,

    If you want to save and show the custom date time label, please disable the option "Save value as timestamp" in the field settings.

    #44752
    AdrienAdrien
    Participant

    Hello,

    I need to use timestamp because I'm using this value to order and filter events from the past and future.
    Also another question, how can I have 09h00 instead of 09:00 for the hour?

    I tried HH\hmm instead of HH:mm but it doesn't work.

    #44759
    PeterPeter
    Moderator

    Hello,

    You can try to use the format HH'h'mm but I see it doesn't work with the timestamp option. However, I recommend using the colon (:) instead of an alphabet character to be compatible with other options.

    #44764
    AdrienAdrien
    Participant

    Alright I see, is it something that can be modified in a new Meta Box update though?
    My initial question and having "h" instead of the ":" in the timeFormat?

    #44769
    PeterPeter
    Moderator

    Hello,

    It's the format of Timepicker library so I don't think Meta Box can do something there.
    https://trentrichardson.com/examples/timepicker/

    However, I will inform the development team to take a look at this case. I will let you know when I have more information.

    #44770
    AdrienAdrien
    Participant

    Hello Peter,

    Yeah I saw that, that's bad that we don't have a timeSeparator like this plugin: https://www.cafe-hadrys.de/wp-content/plugins/wp-opening-hours/includes/jquery-ui-timepicker/legacy_1.2.6/index.html

    Thanks for investigating with the team, looking forward for your reply.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.