Ticket #159 (closed enhancement: fixed)

Opened 20 months ago

Last modified 2 weeks ago

XSL-Callback for formatting dates and timestamps

Reported by: mikey Owned by: 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

Changed 20 months ago by mikey

  • status changed from new to assigned

Changed 20 months ago by mikey

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

Implemented with r1713. Documentation updated.

Note: See TracTickets for help on using tickets.