We used the same code the UddeIM CB plugin uses. See the below.
CBs Plugin:
Code:
$pm->set( 'datum', uddetime( $this->uddeIMConfig->get( 'timezone', 0, GetterInterface::INT ) ) );
This calls UddeIMs own time function while sending the timezone that UddeIM is configured for.
UddeIMs plugin:
Code:
$udde_time = uddetime($this->config->timezone);
They're basically the same so I've no idea what to suggest.