// Format the date & time accordingly
function showdate($format, $val) {
global $settings, $userdata;
if (isset($userdata['user_offset'])) {
$offset = $userdata['user_offset']+$settings['serveroffset'];
} else {
$offset = $settings['timeoffset']+$settings['serveroffset'];
}
// Correction for Daylight saving Time
$dls = 0;
if (date('I', $val+($offset*3600)) == 1){
$dls = 3600;
}
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate" || $format == "newsdate") {
return format_date($settings[$format], $val+$dls+($offset*3600));
} else {
return format_date($format, $val+$dls+($offset*3600));
}
}
$lcmerid = explode('|', $locale['meridiem']);
Category Forum
Suspected Bugs and Errors - 8Labels
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions