• Resolved berttervoert

    (@berttervoert)


    I have created several pods witch work all fine except for one thing: each pod has a custom date field that in one pod is displayed in the Dutch format (27 november 2023, which is the standard wp date setting for my site) and the other pods display it as 11/27/2023.
    I compared the pods, and the settings seem the same. I even tried to delete the other pods an recreate them, but this didn’t make any difference. Do you have any idea what might be causing this?

    with regards,
    Bert.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    Can you provide further details about where you see the different format displayed? Is this on the edit screen only or when output on the front of your site?

    Thread Starter berttervoert

    (@berttervoert)

    It is both on the edit screen and on the output on the front of the site and on the overview page for all the posts of the pod (in admin).

    Thread Starter berttervoert

    (@berttervoert)

    I’m looking online for possible answers and found the suggestion to use the following line of code:

    var_dump( locale() );

    This gives the result: string ‘nl_NL’ (length=5)
    but the date output is in English format.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @berttervoert

    locale() is just the actual locale, this is unrelated to dates.
    How are you displaying the fields at the moment? Are you using magic tags, Pods functions or WP core functions?

    Cheers, Jory

    Thread Starter berttervoert

    (@berttervoert)

    Hi Jory,
    I use pods functions in custom php templates. I had found a work-around online to display the date as I wanted, but then yesterday I discovered that I overlooked the extra settings as you select the date-field while creating your custom pod. So now the date gets displayed correct even without the work-around.
    Thank you for your reply. This topic may be closed.

    cheers, Bert

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi Bert,

    Good to hear you’ve found the settings. Good luck with your project!

    Cheers, Jory

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘same settings, different date format’ is closed to new replies.