You are here

function _event_user_time in Event 5

Same name and namespace in other branches
  1. 5.2 event.module \_event_user_time()

Returns a local timestamp based on the user or site time zone.

Return value

integer timestamp

8 calls to _event_user_time()
event_feed in ./event.module
Url wrapper function for rss feeds
event_form_alter in ./event.module
event_ical in ./event.module
Url wrapper function for ical feeds
event_page in ./event.module
Displays a page containing event information. The page layout defaults to a graphical calendar.
event_term in ./event.module
Url wrapper function for static link to calendar by taxonomy terms.

... See full list

File

./event.module, line 1426

Code

function _event_user_time() {
  global $user;
  if (variable_get('configurable_timezones', 1) && $user->uid && strlen($user->timezone)) {
    return time() - date("Z") + $user->timezone;
  }
  else {
    return time() - date("Z") + variable_get('date_default_timezone', 0);
  }
}