Ticket #159 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

XSL-Callback for formatting dates and timestamps

Reported by: mikey Assigned to: mikey
Priority: major Milestone: 0.9.0
Component: XML/XSL view engine Version: SVN-trunk
Keywords: Cc: prema

Description

There should be some callbacks which allow simple formatting of dates and timestamps within xsl stylesheets. Proposed tags:

<stub:date format="Y-m-d" timestamp="1234567890"/>

Attribute timestamp should be optional, if not set the current timestamp will be used. This callback will use PHP function date().

<stub:localeDate format="%d %b %Y" timestamp="1234567890"/>

Attribute timestamp should be optional, if not set the current timestamp will be used. This callback will use PHP function strftime() with support for localized date strings.

Change History

07/16/08 16:08:40 changed by mikey

  • status changed from new to assigned.

07/16/08 18:08:14 changed by mikey

  • status changed from assigned to closed.
  • resolution set to fixed.

Implemented with r1713. Documentation updated.