Undoing the commit of some esoteric development stuff by mistake.

This commit is contained in:
defacer
2005-01-23 23:59:29 +00:00
parent 66c61c0b50
commit 344932658c
+1 -28
View File
@@ -166,12 +166,7 @@
blocks_print_group($PAGE, $pageblocks[BLOCK_POS_CENTERUP]);
}
echo '<div style="padding: 10px; background: gold; text-align: center;">';
$time = mktime(0, 0, 0, 1, 1, 2005, 0);
print_object(oldgetdate($time));
print_object(usergetdate($time));
echo 'Content Here</div>';
echo '<div style="padding: 10px; background: gold; text-align: center;">Content Here</div>';
echo '<p style="text-align: center; padding: 10px; background: black; color: white;">Center-down position:</p>';
if(blocks_have_content($pageblocks[BLOCK_POS_CENTERDOWN]) || $editing) {
@@ -193,27 +188,5 @@
echo '</tr></table>';
print_footer();
function oldgetdate($date) {
$timezone = get_user_timezone(99);
if (abs($timezone) > 13) {
return getdate($date);
}
//There is no gmgetdate so I have to fake it...
$date = $date + (int)($timezone * HOURSECS);
$getdate['seconds'] = gmstrftime("%S", $date);
$getdate['minutes'] = gmstrftime("%M", $date);
$getdate['hours'] = gmstrftime("%H", $date);
$getdate['mday'] = gmstrftime("%d", $date);
$getdate['wday'] = gmstrftime("%u", $date);
$getdate['mon'] = gmstrftime("%m", $date);
$getdate['year'] = gmstrftime("%Y", $date);
$getdate['yday'] = gmstrftime("%j", $date);
$getdate['weekday'] = gmstrftime("%A", $date);
$getdate['month'] = gmstrftime("%B", $date);
return $getdate;
}
?>