function _event_user_date in Event 5.2
Same name and namespace in other branches
- 5 event.module \_event_user_date()
Returns a local time (as defined by the user or site's timezone) for midnight GMT.
Return value
array
6 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_month in ./
event.module - Displays a monthly event calendar.
- event_calendar_table in ./
event.module - Creates a themed table of events.
- event_calendar_week in ./
event.module - Displays a weekly event calendar.
File
- ./
event.module, line 1468
Code
function _event_user_date() {
static $now;
if (!$now) {
$now = _event_user_time();
$now['hour'] = '00';
$now['minute'] = '00';
}
return $now;
}