function _event_user_date in Event 5
Same name and namespace in other branches
- 5.2 event.module \_event_user_date()
Returns a local timestamp (as defined by the user or site's timezone) for midnight GMT.
Return value
integer timestamp
8 calls to _event_user_date()
- event_block in ./
event.module - Provides the blocks that this module is capable of displaying.
- event_calendar_day in ./
event.module - Displays a daily event calendar.
- event_calendar_list in ./
event.module - Creates a themed list of events.
- event_calendar_month in ./
event.module - Displays a monthly event calendar.
- event_calendar_table in ./
event.module - Creates a themed table of events.
File
- ./
event.module, line 1442
Code
function _event_user_date() {
static $date;
if (!$date) {
$now = _event_user_time();
$date = gmmktime(0, 0, 0, gmdate('m', $now), gmdate('j', $now), gmdate('Y', $now));
}
return $date;
}