ok guys i'm using the unix time insert mktime() into the database
and then i have one set to right now too

now i'm subtracting them and the insert was made about 20-30 minutes ago and i'm getting 7 hours from my code.

i tried to convert the unix time stamp to seconds as well using strtostring() but i got an even higher number 🙁

here's my code

$newdate = (strtotime($todays_date) - 
strtotime($rows['db_date']));
				echo date("g:i:s", $newdate);

both strings you see there $rows['db_date'] and $todays_date are plain and simple mktime() (none set so i set them later as you see using date() )

also one other problem that i'm having.

i have this code for error messages:

function support_processError($error) {
	global $title;
	echo "<center>$title's Support Central Error Processing<br />";
	echo "The following error(s) were found in your pevious action<br />";
		echo "<ul>";

	echo "<li>$error</li>";

	echo "</ul>";
echo "Please go back and try again<br /><br /></center>";
}

now this does work in both opera and IE but not Netscape, any ideas?

thanks alot guys n gals 🙂

    As far as the Time issue is concerned, is your server on a different time to your local time, to the tune of about 7 hours?

    If you use the date() function, it will use return today's date and time as it is on the server, not necessarily your local time.

    (Not sure what the Netscape problem is, though!)

    Good luck!

      ok thanks, and yes it is off by 7 hours lol.

      why didn't I think of that? I'll have to think of a way to correct that then 🙂

      as for netscape the oddest thing happens... it's a bug for sure

      i was using if($submit) { for a form like normal, but get this, netscape 7.0 doesn't interpret that at all, just refreshes the page and does nothing, now this is a login for a support panel so it has to work on every browser, so i changed it from
      if($submit) { to if($action == "whatever") { and it now works.

      really odd. but it works now 🙂

        Bloody Netscape ... and now we've Safari to think about as well now!!

          a that sucks 🙁

          i'm still not able to get my time's right...

          i print out my subtracted date right and I get 1-17-1997 or whatever date it's set to, cant' remember it exactly and thens ome hours...

          so it's in the right direction, but the subtraction's just not right.

          do I relaly have to convert it into the proper date format date("n-j-Y g:i:s a"); and then subtract each variable? ouch, that could bea lot of code.

          thanks 😃

            Write a Reply...