+ Reply to Thread
Results 1 to 3 of 3

Thread: time is incorrect

  1. #1
    Join Date
    Feb 2008
    Posts
    25

    Default time is incorrect

    I use the excellent formmail script but notice the email it produces shows the time as 1 hour behind real time. My hosting company says it will be a setting in the script - is this the case?

  2. #2
    Join Date
    Feb 2007
    Posts
    162

    Default Re: time is incorrect

    The time is usually taken from the server. For instance, if you were to run a simple script called time.php, you will see what time that the server is set with, and then you can determine if your time issue is yours or the server's:

    time.php
    Code:
    <?php
         echo 'Server time equals  :   '. date("l, jS F Y, H:i");
    ?>
    Remember that the server may be in a different time zone. USA where I live has 4 time zones just for the continental USA. If you want the client side time, you will need to use javascript in your form, and send it to formmail as a hidden field.
    Last edited by CHMOD000; 03-Aug-2008 at 11:37 PM. Reason: more complete time

  3. #3
    Join Date
    Dec 2005
    Posts
    5

    Default Re: time is incorrect

    I am wondering if this would be solved by putting something like this in the formmail.php:

    Code:
    putenv('TZ=Australia/Melbourne');

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Need help. First time user...
    By Graphik in forum Community Support
    Replies: 5
    Last Post: 08-Feb-2006, 05:10 PM
  2. Time date stamp in email
    By basnyd in forum FormMail Subscription Support
    Replies: 1
    Last Post: 02-Dec-2005, 03:01 AM
  3. Time zone problems
    By oderus in forum FormMail Subscription Support
    Replies: 2
    Last Post: 17-Oct-2005, 05:47 PM
  4. Easy way to adjust server time with script?
    By djdevine in forum FormMail Subscription Support
    Replies: 6
    Last Post: 29-Sep-2005, 09:23 PM
  5. how to install formmail for the first time?
    By gwbosma in forum FormMail Subscription Support
    Replies: 4
    Last Post: 20-Nov-2004, 05:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts