You are here

public function DatexObject::setTimezone in Datex 7.2

Same name and namespace in other branches
  1. 7 datex_api/datex_api_classes.inc \DatexObject::setTimezone()

Sets Time Zone of internal date object.

Accepts a DateTimeZone Object or an string representing a timezone.

1 call to DatexObject::setTimezone()
DatexObject::checkSetTimezone in datex_api/datex_api.class.inc
Check to see if given timezone is not NULL, Then if it's so, set it.

File

datex_api/datex_api.class.inc, line 313
Provides an API to work with dates.

Class

DatexObject
Base class for localized DateTime.

Code

public function setTimezone($timezone) {
  $timezone = $this
    ->getTzObject($timezone);
  parent::setTimezone($timezone);
  $this
    ->reset();
  return $this;
}