PHP Scripts Development » PHP Classes Support Forum

format _TimeStamp_class bug?

(2 posts)

Great offers not only for geeks!


  1. Hi Olaf:
    Maybe im wrong, but... in the class constructor

    function format_timestamp() {
    	$this->reg_date = date("Y-m-d");
    	$this->reg_date = "00:00:00";
    }

    $this->reg_date = "00:00:00"; <-- This must be $this->reg_time insted ?

    Posted 4 months ago #
  2. yep you're right...

    I think that was my first class, never touched it for years. I think you don't need it because you can format date/time within MySQL much faster...

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.