• Hi
    Can anyone please let me know how to change the date format of the “Last Login” shown on the user profile? I guess it should be a change on the page “um-filters-fields.php” but I have no clue what and how to change.
    At the moment: last login: october 03 at 9:48pm
    My wish: last login: 03.10.2016 um 19:48 Uhr (sorry, swiss date format ?? )
    Thanks for your help!
    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unless it is something really useful to the UM community, code modifications such as what you wish are not supported on this forum. That said, have you tried changing the format on WordPress (Settings > General Settings > Date Format)?

    Thread Starter herrmeier

    (@herrmeier)

    Hi borisv
    Thanks for your feedback. I wish I don’t have to modify any code but unfortunately, changes on the WordPress settings don’t change the last login date format.

    Well, you have to modify code. Here, this should give you a clue as to what needs to be done:
    https://stackoverflow.com/questions/136782/convert-from-mysql-datetime-to-another-format-with-php

    Thread Starter herrmeier

    (@herrmeier)

    Hi borisv
    Thanks again. In the meantime I have found the page where I could make the changes and it seems to work: um-datetime.php
    Now only the month is written in English instead of German (“October” instead of “Oktober”). Strange as in the WordPress settings German is set as language. Is this an ultimatemember issue? Do you have any idea where to change?
    And one last question: To not have the adjustments overwritten by any updates should it be possible to save the modified pages to my child theme? Am I write to save the above mentioned page “um-datetime.php” in child-theme/ultimate-member/core? I have tried but it seems that ultimate-member always takes the page from the original path.
    Many thanks for your help which is really appreciated!

    I am sorry, but I don’t believe that “um-datetime.php” will override date formatting. What I was suggesting is that you modify your SQL data base via phpMyAdmin. These are the instructions:

    https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-format

    I hope this helps,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Last Login date format’ is closed to new replies.