hi
can someone tell me or point me in the right direction.
when i insert name and a uploaded image using a form on my website into my mysql database it works fine. but the date and time that are stored for that record are a day behind. iam using timestamps to store the date and time.

so when i click on the link to display the info from my database the date and time are wrong.
pls help cant find the answer on the net.

    sounds like your server time is wrong. you can figure this out for sure by making a doc like

    echo date('r');
    

    and noting the time. if thats what it is, your host will be able to fix this is seconds.

      ok well as iam running on a free host i cant change the time zone for my server not via .htaccess or php.ini or any other way. if i upgrade to a paid account then i would be able to. thank you for your help tho.

        if your insertion of time is done via php and not a mysql timestamp or whatever, you can set your time zone with
        [man]date_default_timezone_set/man, or if your php is older:
        [man]putenv/man, or
        [man]ini_set/man

          Write a Reply...