is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 10 years ago

Closed 10 years ago

#1432 closed bug (fixed)

date_format should support timestamp as parameter

Reported by: foxmask Owned by:
Priority: normal Milestone: Jelix 1.1.12
Component: jelix:plugins:tpl Version: 1.2.6
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


here is the complet description :

and it seems to not work as expected.

at least we should do something like that

           $time = strtotime($string);
           if ($time == -1 || $time === false) $time = time(); 
           return strftime($format,$time);

Change History (2)

comment:1 Changed 10 years ago by foxmask

  • Milestone set to Jelix 1.2.7

comment:2 Changed 10 years ago by laurentj

  • Milestone changed from Jelix 1.2.7 to Jelix 1.1.12
  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from date_format does not return the expected result to date_format should support timestamp as parameter
Note: See TracTickets for help on using tickets.