Jeff-Lewis / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

Default date format bug #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Smarty-3.1.18.
Smarty.class.php 4828 2014-04-04 23:38:36Z

date_format modifier doesnt return date without format specified

{$time|date_format}

result is empty string

I have found that date is defined as following in smarty.class.php:
define('SMARTY_RESOURCE_DATE_FORMAT', '%b %-e, %Y');

the "-" is a typo which prevents the date to show

Original issue reported on code.google.com by vilem.m...@gmail.com on 17 Apr 2014 at 11:26

GoogleCodeExporter commented 9 years ago
Thanks for your input

The bugfix of 6.4.2014 is now reverted in the SVN trunk because the $-e date 
format is not support on all systems. 

Original comment by Uwe.Tews@googlemail.com on 18 Apr 2014 at 8:12