CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12499] adminlog.tpl Wrongly formed date

avatar
Created By: Jean-Claude Etiemble (jce76350)
Date Submitted: Tue Nov 30 08:49:20 -0500 2021

Assigned To: Ruud van der Velden (ruudvdvelden)
Version: None
CMSMS Version: 2.2.15
Severity: Trivial
Resolution: Fixed
State: Open
Summary:
adminlog.tpl Wrongly formed date
Detailed Description:
Into adminlog.tpl on line 96
<td>{$line.date|date_format:'%e %h. %Y %H:%M:%S'}</td>

after the last h, there is an extra point
so in French the date is "30 nov.. 2021 14:49:58"  2 points after nov ;)


History

Comments
avatar
Date: 2021-12-01 07:25
Posted By: tom (tomphantoo)

Function strftime() is deprecated as of PHP 8.1.0.
Omitting all '%' chars from the format string causes smarty modifier date_format
to use date() instead of strftime().
Migrate soonish to date()-compatible formats, for defaults at least ?

      
avatar
Date: 2021-12-02 03:50
Posted By: Jean-Claude Etiemble (jce76350)

@ tom my bug is ONLY a typo not a PHp 8.1 problem ;) 
- and CMSMS 2.2.15  is NOT compatible PHP 8.1 
      
avatar
Date: 2021-12-09 20:52
Posted By: tom (tomphantoo)

Replaced strftime()-compatible format with date()-compatible format 'j M Y
H:i:s'
      
avatar
Date: 2021-12-12 11:17
Posted By: Fernando Morgado (JoMorg)

Fixed in svn, thanks all.
      
Updates

Updated: 2021-12-12 11:17
state: Closed => Open

Updated: 2021-12-09 20:52
resolution_id: 5 => 7
state: Open => Closed

Updated: 2021-12-01 07:25
resolution_id: => 5