WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

Ankündigung

WBCE CMS 1.6.9 verfügbar / available - wichtiges Sicherheitsudate / important security update

#1 27.08.2021 04:37:33

losttrip
Mitglied

Modul User Statistics show the AM/PM

Is there a way to show the AM / PM for "Last Login" time?

Offline

#2 27.08.2021 06:50:27

florian
Administrator

Re: Modul User Statistics show the AM/PM

Yes. In the modules/userstat/tool.php, change line 92

'LAST_LOGIN'	=> date((($row['login_when'] == 0) ? ' ' : $LANG[0]['DATE_FORMAT']), (int) $row['login_when']),

to

'LAST_LOGIN'	=> date((($row['login_when'] == 0) ? ' ' : DATE_FORMAT.' '.TIME_FORMAT), (int) $row['login_when']),

Actually, the tool is obsolete, the core "Account and Signups configuration" admin tool shows the same information.
Nevertheless, the Signup tool has the same issue, so if you use that, change line 44 of /modules/tool_account_settings/theme/tool_overview.twig

<small>{% if rec['login_when'] %}{{ rec['login_when']|date(DATE_FORMAT ~'  H:i')}}{% else %}N/A{% endif %}</small></nobr>

to

<small>{% if rec['login_when'] %}{{ rec['login_when']|date(DATE_FORMAT ~' '~  TIME_FORMAT)}}{% else %}N/A{% endif %}</small></nobr>

Offline

Liked by:

losttrip

#3 27.08.2021 07:54:29

losttrip
Mitglied

Re: Modul User Statistics show the AM/PM

Thank you for the heads up on "Account and Signups configuration", I had never noticed it.  I guess I need to look around a bit more at wbce 1.5.

Oddly, Account and Signups configuration shows a 24 hour time, so I do not have the same issue.

Offline

Fußzeile des Forums

up