You are here

function date_gmadj_zone in Date 5

2 calls to date_gmadj_zone()
date_select_input in ./date.inc
Flexible Date/Time Drop-Down Selector
date_text_input in ./date.inc
Text date input form, with optional jscalendar popup

File

./date.inc, line 155
Date/time API functions

Code

function date_gmadj_zone($timestamp) {

  // No timezone adjustment for very old dates.
  if ($timestamp < 86400) {
    return $timestamp;
  }
  date_load_library();
  switch (DATE_LIBRARY) {
    case 'ADODB':
      return intval($timestamp + adodb_date('Z', $timestamp));
    default:
      return intval($timestamp + date('Z', $timestamp));
  }
}