Author: yotsume » Sun Jul 15, 2007 2:30 am
I have a no More GMT mod here. Uggggg Must conflict? Now what do I do?
/* Begin NoMoreGMT! mod code by Jason Baker of Fablesoft.com */
//mytimestamp, this function generates sane representations of "GMT - 4"
function mytimestamp($adjust)
{
$zone = 3600 * $adjust;
$tmptime = $mytime; //gmdate thrashes this value.
$hour = gmdate("H", time() + $zone);
$tmptime = $mytime;
$min = gmdate("i", time() + $zone);
$ampm = "";
if ($hour > 23) $hour = $hour - 24;
if ($hour <0> 12)
{
$hour = $hour - 12;
$ampm = "pm";
}
else
{
if ($hour == 0) $hour = 12;
$ampm = "am";
}
Last edited by yotsume on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Yotsume