January 1, 1970 *&$^[email protected]#%@^

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

bhilai.co.in

Thread Starter
Joined
Oct 4, 2006
Messages
20
Warning: mktime(): Windows does not support negative values for this function in E:\inetpub\vhosts\xxxxx.com\httpdocs\Gdate\public_html\showprofile.php on line 183

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\inetpub\vhosts\xxxxx.com\httpdocs\Gdate\public_html\showprofile.php on line 183

Warning: mktime(): Windows does not support negative values for this function in E:\inetpub\vhosts\xxxxx.com\httpdocs\Gdate\public_html\showprofile.php on line 193

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in E:\inetpub\vhosts\xxxxx.com\httpdocs\Gdate\public_html\showprofile.php on line 193

Im giving the lines below (i.e. 183 1nd 194):

$futuredate1 = date("Y/m/d", mktime(0,0,0,date("m"),(date("d") - $config['mod_rating_rem_com']),date("Y"))); --------(this is line 183 of showprofile.php)-----------------

$futuredate2 = date("Y/m/d", mktime(0,0,0,date("m"),(date("d") - $config['mod_rating_rem_rat']),date("Y"))); --------(this is line 193 of showprofile.php)-----------------


Please help me out .
 
Joined
Feb 25, 2004
Messages
444
Are you trying to get the date $config['mod_rating_rem_com' days into the past/future??

Try this instead
Code:
$futuretime = strftime("+{$config['mod_rating_rem_com']} DAYS", time());   //get a timestamp for BLAH DAYS into the future
$futuredate = strtotime("%Y/%m/%d",$futuretime); //convert the timestamp into a Year/Month/Day formated string
of if its days into the past change the + to a -
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top