Ticket #159 (closed enhancement: fixed)

Opened 2 years ago

Last modified 6 months 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 2 years ago by mikey

  • status changed from new to assigned

Changed 2 years 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.