Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

date_format return the current date when input is null

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
marcelo.braz.rodrigues@gm
Smarty n00b


Joined: 23 Sep 2018
Posts: 1

PostPosted: Sun Sep 23, 2018 1:47 am    Post subject: date_format return the current date when input is null Reply with quote

{null|date_format:'%d/%m/%Y'}
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1383

PostPosted: Tue Sep 25, 2018 7:55 am    Post subject: Reply with quote

This is not a bug. Read the documentation for relevant PHP function.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5066
Location: Hamburg / Germany

PostPosted: Sun Oct 14, 2018 1:39 am    Post subject: Reply with quote

AnrDaemon wrote:
This is not a bug. Read the documentation for relevant PHP function.


It was a bug. The fix is in the master branch and will be included in 3.1.34
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP