Update DateTime item via cURL?

Hi, I´m currently try to update a DateTime item via cURL but i didn´t get it working.

Here is my item:

DateTime DEV_01 "Device1 last detection [%1$td.%1$tm.%1$tY %1$tT]" <calendar>

And here is my code:

TimeDateFromNow = (time.strftime("%d.%m.%Y %H:%M:%S"))
os.system('/usr/bin/curl --header "Content-Type: text/plain" --request PUT --data "'+str(TimeDateFromNow)+'" http://localhost:8080/rest/items/DEV_01/state')

But the time / date value didn´t appear in OpenHAB.

Any ideas?

Got it. It seamed the time needs to be in the format “2014-10-24T08:00:00”. So this Python code works for OpenHAB 1.8.3 (at least in my tests currently):

TimeDateFromNow = (time.strftime("%Y-%m-%dT%H:%M:%S"))
print TimeDateFromNow
os.system('/usr/bin/curl --header "Content-Type: text/plain" --request PUT --data "'+str(TimeDateFromNow)+'" http://localhost:8080/rest/items/DEV_01/state')