eZ Community » Forums » Developer » Create eZDateTime datatype with xml +...
expandshrink

Create eZDateTime datatype with xml + xsl

Create eZDateTime datatype with xml + xsl

Monday 23 November 2015 12:51:00 pm

Hi everybody,

everyday with a cron, I create some objetcs (custom event class).

My custom event class must be updated with a ezdatetime, but I don't know how to create it.

In my xml, date and hours are between differents tag, so I concat them into an xsl variable.

  I can format my date variable like I want, but I don't know how I must format it to create an eZDateTime ...

Actually I have "YYYYMMDDTHH:MM:SS" string, but my final object's date is 1970/01/01.

 Someone would have an idea of how to proceed or links to sources ? (eZ 4.7)

Thanks for help

No reply yet!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from