Time Field Not Saving

Support Meta Box AIO Time Field Not SavingResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #49561
    Tobias HaasTobias Haas
    Participant

    Hey, I created an event page with some custom fields. I had to switch from DateTime to Date and Time so I could correctly populate the Google schema.

    Unfortunately, the values ​​in the Time field can't be saved.

    https://pastebin.com/V3Hk0fby

    #49562
    Tobias HaasTobias Haas
    Participant

    Server Environment
    Server info: Apache/2.4.65 (Unix)

    MySQL version: 10.11.14
    Postmeta table meta_value type: longtext

    PHP version: 8.3.28
    PHP post max size: 128M
    PHP execution time limit: 240
    PHP max input vars: 4000
    PHP safe mode: -
    PHP memory limit: 512M
    PHP max upload file size: 128M

    #49566
    PeterPeter
    Moderator

    Hello Tobias,

    Thanks for reaching out.

    This happens because the setting timestamp is still applied to the time field.

            {
                "id": "event_time_start",
                "type": "time",
                "label_description": "Um wie viel Uhr beginnt das Event?",
                "placeholder": "09:00",
                "timestamp": true,
                "inline": false,
                "columns": 3,
                "prepend": "Beginnt um:",
                "tab": "tab_event_details"
            },
    

    You can remove it from the JSON file or add the field setting timestamp -> false to fix the issue, screenshot https://imgur.com/ZkRFC2f

    #49574
    Tobias HaasTobias Haas
    Participant

    Hey Peter,

    Thanks so much! That did the trick. Unfortunately, it’s a bit inconvenient that the values don’t update or get cleared when changing the custom field. It was originally set as a Datetime field, which I later changed to a Time field — ideally, the timestamp attribute should automatically be removed in that case.

    Anyway, it worked! Maybe this feedback is helpful for you and the team.
    Wishing you all a great start to the new year!

    #49581
    PeterPeter
    Moderator

    Hello,

    Thanks for your confirmation.

    I've escalated this issue to the development team to fix it in the next update of the builder plugin.

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