Skip to content

Instantly share code, notes, and snippets.

@fdob
fdob / error.php
Created November 20, 2012 15:58 — forked from pedroresende/error
Stack Trace Error
<?php
$content = $this->api->getContentToUpdate(
$this->api->getContentInfoByPath( '/Date-and-Time-Test-Object' )
);
try {
$newData = new DateTime( '31-09-2012 12:00 am' ); // 31-09-2012 12:00 am
$content->setField( 'date_time', $newData );