Viewing Issue Simple Details |
ID |
Category |
Type |
Reproducibility |
Date Submitted |
Last Update |
0000653 |
[In-Portal CMS] Data Management |
feature request |
N/A |
2010-03-27 16:47 |
2012-07-25 05:33 |
|
Reporter |
alex |
View Status |
public |
|
Assigned To |
alex |
Priority |
normal |
Resolution |
fixed |
|
Status |
closed |
|
|
|
|
Summary |
0000653: Make "kDateFormatter" support date format constants in "format" parameter |
Description |
I propose we teach kDateFormatter class how to support date format constants, like "DATE_RSS", "DATE_RFC822" and so on (see http://lv.php.net/manual/en/class.datetime.php#datetime.constants.types). For example this will allow us to write such code in template:
<item>
<title><inp2:Field name="Title"/></title>
<pubDate><inp2:Field name="CreatedOn" format="DATE_RSS"/>
</item> |
Additional Information |
In kDateFormatter::Format method before doing sprintf check if defined($format) is true. If it is, then use constant($format). |