Share » Forums » Setup & design » Wrong Attribute Date Time value return

Wrong Attribute Date Time value return

Wrong Attribute Date Time value return

Saturday 06 January 2007 4:33:12 am - 2 replies

Author Message

Claudia Kosny

Saturday 06 January 2007 8:51:09 am

Hi Luca

As you can see here http://ez.no/doc/ez_publish/technical_manual/3_8/reference/datatypes/date_and_time , the content of a attribute of type 'date and time' returns an object of type 'ezdatetype'. This object has an attribute 'timestamp' which you can use as input for the l10n operator.

So just use

{$node.object.data_map.data.content.timestamp|l10n( 'shortdatetime' )}

and it should work.

Claudia

Luca Di Nubila

Saturday 06 January 2007 10:00:58 am

You' re my Angel

Thanks

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu