• Resolved toad78

    (@toad78)


    I don’t see within the Settings choices of Date Formats if I was to post a Registration Date field within the Profile form. I thought this plugin would’ve relied on the WordPress default date format that is set in the General Settings, but it doesn’t. I’d appreciate some help on this.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @toad78

    The Registration Date field uses a date format from the WordPress settings: Settings -> General -> Date Format. Does your field not match these settings?

    Thank you.

    Thread Starter toad78

    (@toad78)

    No, it does not. The format in the UM Registration Date field is:
    2018-05-29 15:26:58

    It should be Month Day, Year

    @toad78

    The Registration date format is defined by WP and created by WP at User Registration.

    UM is only displaying the WP date as a text field without any additional formatting.

    https://developer.wordpress.org/reference/functions/wp_insert_user/

    Date the user registered in UTC. Format is ‘Y-m-d H:i:s’.

    Thread Starter toad78

    (@toad78)

    Thank you for getting back to me, @missveronicatv.

    In the Settings > General > it is set to the correct timezone. It’s the way the date information is displayed in the Profile (which is coming from the UM Profile form) that is wrong:
    https://prnt.sc/cY6OnGY5Q8-w
    https://prnt.sc/oE-vXqr0CdtG

    So I’m still confused how the information posting is not in the correct timezone when the user was registered on the server that has the correct timezone set in WordPress. Could this be a conflict with the way the Server timezone is set or how the format is posting?

    • This reply was modified 1 year, 6 months ago by toad78.

    @toad78

    The formatting is following the date option set by WP.

    $value = sprintf( __( 'Joined %s', 'ultimate-member' ), date_i18n( get_option( 'date_format' ), $value ) );

    Have you removed the text “Joined”?
    Timezone is adjusted by the function date_i18n.

    Thread Starter toad78

    (@toad78)

    Hello, @missveronicatv.
    No, I have not modified the text “Joined” at all. That displays fine. It’s the Registration Date Field that isn’t displaying correctly.
    https://prnt.sc/JAvylnpphIFD
    https://prnt.sc/wBbTcBi9xYF1

    @toad78

    I don’t think that UM is supporting User editing of the WP Registration Date and you have found a glitch here.

    UM will in this case save the edited Registration Date in a duplicate text field in the usermeta table and not in the WP users table. A date validation is not used and any text can be entered with current date displayed instead if not a valid date format is entered by the User.

    Thread Starter toad78

    (@toad78)

    hmm…
    I think what I’ll do is just skip the usage of posting the Registration Date field, since it isn’t posting the correct format. I’ll have to think of something else.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @toad78

    Did you solve this problem? Can I close this topic?

    Thank you.

    Thread Starter toad78

    (@toad78)

    Nope. The Registration Date field still posts the incorrect format of the date, so I had to remove it. You can close this topic, but there was no official solution.

    @toad78

    I have posted an UM Bug report regarding this issue to get the UM policy regarding Registration Date updates resolved.

    https://github.com/ultimatemember/ultimatemember/issues/1154

    Thread Starter toad78

    (@toad78)

    Thank you, @missveronicatv.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Profile Form: Change Registration Date Format’ is closed to new replies.